Skip to content

Commit

Permalink
Fix PdoPgSqlQueryReflector build
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 17, 2024
1 parent 03f289c commit 0a1d697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QueryReflection/PdoPgSqlQueryReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ 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
/** @var array{column_default?: string, column_name: string, is_nullable: string} $row */
foreach ($result as $row) {
foreach ($result as $row) { // @phpstan-ignore varTag.type
$default = $row['column_default'] ?? '';
$columnName = $row['column_name'];
$isNullable = 'YES' === $row['is_nullable'];
Expand Down

0 comments on commit 0a1d697

Please sign in to comment.