Skip to content

Commit

Permalink
Update PdoPgSqlQueryReflector.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 17, 2024
1 parent 3160612 commit 0151377
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/QueryReflection/PdoPgSqlQueryReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ protected function checkInformationSchema(string $tableName): Iterator
foreach ($result as $row) {
$default = $row['COLUMN_DEFAULT'] ?? '';
$columnName = $row['COLUMN_NAME'];
if ($columnName === null) {

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

View workflow job for this annotation

GitHub Actions / PHPStan (reflection replay) (8.1, mysqli, replay)

Strict comparison using === between string and null will always evaluate to false.

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

View workflow job for this annotation

GitHub Actions / PHPStan (reflection replay) (8.1, pdo-mysql, replay)

Strict comparison using === between string and null will always evaluate to false.

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

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, mariadb:latest, mysqli, recording)

Strict comparison using === between string and null will always evaluate to false.

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

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, mariadb:latest, mysqli, recording)

Strict comparison using === between string and null will always evaluate to false.

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

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, mariadb:latest, mysqli, recording)

Strict comparison using === between string and null will always evaluate to false.

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, replay-and-recording, --health-cmd="mysqladmin ping" --health-in...

Strict comparison using === between string and null will always evaluate to false.
throw new ShouldNotHappenException('Failed to get column name');
}
$isNullable = 'YES' === $row['IS_NULLABLE'];

if (! $isNullable) {
Expand Down

0 comments on commit 0151377

Please sign in to comment.