Skip to content

Commit

Permalink
Test unspecified lists (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Oct 3, 2024
1 parent a259025 commit 31a21b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/default/data/pdo-prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ public function unspecifiedArray(PDO $pdo, array $idsToUpdate, string $time)
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
}

/**
* @param list $idsToUpdate
*/
public function unspecifiedList(PDO $pdo, array $idsToUpdate, string $time)
{
$query = 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time';
$stmt = $pdo->prepare($query);
$stmt->execute([
'ids' => $idsToUpdate,
'time' => $time,
]);
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
}

/**
* @param number $idsToUpdate
*/
Expand Down

0 comments on commit 31a21b6

Please sign in to comment.