Skip to content

Commit 1f4176c

Browse files
clxmstaabstaabm
authored andcommitted
different rule
1 parent c5705ce commit 1f4176c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/default/data/doctrine-dbal.php

+13
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

-13
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,4 @@ public function noInferenceOnBug196(PDO $pdo, array $minorPhpVersions, \DateTime
124124
assertType('PDOStatement', $stmt);
125125
}
126126

127-
/**
128-
* @param list<positive-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-
}
140127
}

0 commit comments

Comments
 (0)