Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 17, 2024
1 parent 94cebca commit 087f413
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
17 changes: 16 additions & 1 deletion .phpstan-dba-mysqli.cache

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/DoctrineReflection/DoctrineResultObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Doctrine\DBAL\Result;
use PHPStan\ShouldNotHappenException;
use PHPStan\TrinaryLogic;
use PHPStan\Type\IsSuperTypeOfResult;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
Expand Down
1 change: 0 additions & 1 deletion src/DoctrineReflection/DoctrineStatementObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Doctrine\DBAL\Statement;
use PHPStan\ShouldNotHappenException;
use PHPStan\TrinaryLogic;
use PHPStan\Type\IsSuperTypeOfResult;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
Expand Down
1 change: 0 additions & 1 deletion src/MysqliReflection/MysqliResultObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace staabm\PHPStanDba\MysqliReflection;

use PHPStan\TrinaryLogic;
use PHPStan\Type\IsSuperTypeOfResult;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
Expand Down
1 change: 0 additions & 1 deletion src/PdoReflection/PdoStatementObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use PDOStatement;
use PHPStan\ShouldNotHappenException;
use PHPStan\TrinaryLogic;
use PHPStan\Type\ArrayType;
use PHPStan\Type\BenevolentUnionType;
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
Expand Down
2 changes: 2 additions & 0 deletions src/QueryReflection/PdoPgSqlQueryReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ protected function checkInformationSchema(string $tableName): Iterator
$this->stmt->execute([$tableName]);
$result = $this->stmt->fetchAll(PDO::FETCH_ASSOC);

// pgsql and mysql have a similar named but different information schema, with different cased key-words
// @phpstan-ignore-next-line
/** @var array{column_default?: string, column_name: string, is_nullable: string} $row */
foreach ($result as $row) {

Check failure on line 125 in src/QueryReflection/PdoPgSqlQueryReflector.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mysql:8.0, mysqli, recording)

PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.

Check failure on line 125 in src/QueryReflection/PdoPgSqlQueryReflector.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, mysql:8.0, mysqli, recording)

PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.

Check failure on line 125 in src/QueryReflection/PdoPgSqlQueryReflector.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, mysql:8.0, mysqli, recording)

PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.

Check failure on line 125 in src/QueryReflection/PdoPgSqlQueryReflector.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mysql:8.0, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...

PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.

Check failure on line 125 in src/QueryReflection/PdoPgSqlQueryReflector.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mysql:8.0, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...

PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.
$default = $row['column_default'] ?? '';
Expand Down
2 changes: 0 additions & 2 deletions src/QueryReflection/QueryReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\InterpolatedStringPart;
use PhpParser\Node\Scalar\Encapsed;
use PhpParser\Node\Scalar\EncapsedStringPart;
use PhpParser\Node\Scalar\InterpolatedString;
use PHPStan\Analyser\Scope;
use PHPStan\ShouldNotHappenException;
Expand Down

0 comments on commit 087f413

Please sign in to comment.