Skip to content

Commit b6e6b4c

Browse files
committed
fix
1 parent 1a57160 commit b6e6b4c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/default/data/pdo-fetch-types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function unsupportedFetchTypes(PDO $pdo)
4040
{
4141
$stmt = $pdo->query('SELECT email, adaid FROM ada', PDO::FETCH_COLUMN);
4242
foreach ($stmt as $row) {
43-
assertType('mixed', $row);
43+
assertType('array<int|string, mixed>', $row);
4444
}
4545
}
4646
}

tests/default/data/pdo-prepare.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
197197
// this query is too dynamic for being analyzed.
198198
// make sure we don't infer a wrong type.
199199
foreach ($stmt as $row) {
200-
assertType('mixed', $row);
200+
assertType('array<int|string, mixed>', $row);
201201
}
202202
}
203203
}

tests/default/data/query-alias.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function leftJoinQuery(PDO $pdo)
1414
$stmt = $pdo->query($query, PDO::FETCH_ASSOC);
1515

1616
foreach ($stmt as $row) {
17-
assertType('array{email: string, adaid: int<-32768, 32767>}|null', $row);
17+
assertType('array{email: string, adaid: int<-32768, 32767>|null}', $row);
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)