Skip to content

Commit 0a1d697

Browse files
committed
Fix PdoPgSqlQueryReflector build
1 parent 03f289c commit 0a1d697

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QueryReflection/PdoPgSqlQueryReflector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ protected function checkInformationSchema(string $tableName): Iterator
119119
$this->stmt->execute([$tableName]);
120120
$result = $this->stmt->fetchAll(PDO::FETCH_ASSOC);
121121

122+
// pgsql and mysql have a similar named but different information schema, with different cased key-words
122123
/** @var array{column_default?: string, column_name: string, is_nullable: string} $row */
123-
foreach ($result as $row) {
124+
foreach ($result as $row) { // @phpstan-ignore varTag.type
124125
$default = $row['column_default'] ?? '';
125126
$columnName = $row['column_name'];
126127
$isNullable = 'YES' === $row['is_nullable'];

0 commit comments

Comments
 (0)