Skip to content

Commit 29027d3

Browse files
clxmstaabstaabm
authored andcommitted
added failling list<int> test
1 parent 08a068d commit 29027d3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/default/data/pdo-prepare.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,18 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
165165
// make sure we don't infer a wrong type.
166166
assertType('PDOStatement', $stmt);
167167
}
168+
169+
/**
170+
* @param list<int> $idsToUpdate
171+
*/
172+
public function specifiedList(PDO $pdo, array $idsToUpdate, string $time)
173+
{
174+
$query = 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time';
175+
$stmt = $pdo->prepare($query);
176+
$stmt->execute([
177+
'ids' => $idsToUpdate,
178+
'time' => $time,
179+
]);
180+
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
181+
}
168182
}

0 commit comments

Comments
 (0)