Skip to content

Commit

Permalink
build(deps-dev): update phpstan/phpstan to 0.12.99 (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Skrasek <hrach.cz@gmail.com>
  • Loading branch information
dependabot[bot] and hrach committed Sep 28, 2021
1 parent a7d7989 commit 90f8878
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -24,9 +24,9 @@
"nette/finder": "~2.5",
"nette/neon": "~3.0",
"phpstan/extension-installer": "1.1.0",
"phpstan/phpstan": "0.12.94",
"phpstan/phpstan": "0.12.99",
"phpstan/phpstan-deprecation-rules": "0.12.6",
"phpstan/phpstan-strict-rules": "0.12.10",
"phpstan/phpstan-strict-rules": "0.12.11",
"symfony/config": "~4.4 || ~5.0",
"symfony/dependency-injection": "~4.4 || ~5.0",
"symfony/http-kernel": "~4.4 || ~5.0",
Expand Down
4 changes: 3 additions & 1 deletion src/Drivers/Pgsql/PgsqlResultAdapter.php
Expand Up @@ -83,7 +83,9 @@ public function getTypes(): array

for ($i = 0; $i < $count; $i++) {
$nativeType = pg_field_type($this->result, $i);
$types[pg_field_name($this->result, $i)] = $nativeType;
$name = pg_field_name($this->result, $i);
assert($name !== false); // @phpstan-ignore-line
$types[$name] = $nativeType;
}

return $types;
Expand Down
1 change: 0 additions & 1 deletion src/Utils/DateTimeHelper.php
Expand Up @@ -3,7 +3,6 @@
namespace Nextras\Dbal\Utils;


use DateTime;
use DateTimeInterface;
use DateTimeZone;

Expand Down

0 comments on commit 90f8878

Please sign in to comment.