Skip to content

Commit fede70a

Browse files
committed
Restore pdo-prepare.php
1 parent c866879 commit fede70a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tests/default/data/doctrine-dbal.php

+11
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,15 @@ public function fetchFromListParam(Connection $conn, array $idsToUpdate)
238238
$fetchResult = $conn->fetchOne($query, $idsToUpdate);
239239
assertType('string|false', $fetchResult);
240240
}
241+
242+
/**
243+
* @param array<positive-int> $idsToUpdate
244+
*/
245+
public function fetchFromArrayParam(Connection $conn, array $idsToUpdate)
246+
{
247+
$query = 'SELECT adaid FROM ada WHERE adaid IN(?)';
248+
$fetchResult = $conn->fetchOne($query, $idsToUpdate);
249+
assertType('string|false', $fetchResult);
250+
}
251+
241252
}

tests/default/data/pdo-prepare.php

-1
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,4 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
165165
// make sure we don't infer a wrong type.
166166
assertType('PDOStatement', $stmt);
167167
}
168-
169168
}

0 commit comments

Comments
 (0)