Skip to content

Commit 4ec254c

Browse files
clxmstaabstaabm
authored andcommitted
added failling list<int> test
1 parent dffa34b commit 4ec254c

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
@@ -137,4 +137,18 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
137137
// make sure we don't infer a wrong type.
138138
assertType('PDOStatement', $stmt);
139139
}
140+
141+
/**
142+
* @param list<int> $idsToUpdate
143+
*/
144+
public function specifiedList(PDO $pdo, array $idsToUpdate, string $time)
145+
{
146+
$query = 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time';
147+
$stmt = $pdo->prepare($query);
148+
$stmt->execute([
149+
'ids' => $idsToUpdate,
150+
'time' => $time,
151+
]);
152+
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
153+
}
140154
}

0 commit comments

Comments
 (0)