Skip to content

Commit 1e1c2e7

Browse files
clxmstaabstaabm
authored andcommitted
different rule
1 parent 37c413d commit 1e1c2e7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/default/data/doctrine-dbal.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,17 @@ public function customTypeParameters(Connection $conn)
228228
);
229229
assertType('Doctrine\DBAL\Result', $result);
230230
}
231+
232+
/**
233+
* @param list<positive-int> $idsToUpdate
234+
*/
235+
public function specifiedList(Connection $conn, array $idsToUpdate, string $time)
236+
{
237+
$query = 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time';
238+
$result = $conn->executeQuery($query, [
239+
'ids' => $idsToUpdate,
240+
'time' => $time,
241+
]);
242+
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $result);
243+
}
231244
}

tests/default/data/pdo-prepare.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,4 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
166166
assertType('PDOStatement', $stmt);
167167
}
168168

169-
/**
170-
* @param list<positive-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-
}
182169
}

0 commit comments

Comments
 (0)