Skip to content

Commit e984e12

Browse files
clxmstaabstaabm
authored andcommitted
added failling list<int> test
1 parent a259025 commit e984e12

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
@@ -123,4 +123,18 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
123123
// make sure we don't infer a wrong type.
124124
assertType('PDOStatement', $stmt);
125125
}
126+
127+
/**
128+
* @param list<int> $idsToUpdate
129+
*/
130+
public function specifiedList(PDO $pdo, array $idsToUpdate, string $time)
131+
{
132+
$query = 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time';
133+
$stmt = $pdo->prepare($query);
134+
$stmt->execute([
135+
'ids' => $idsToUpdate,
136+
'time' => $time,
137+
]);
138+
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
139+
}
126140
}

0 commit comments

Comments
 (0)