We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af725e7 commit 746caa6Copy full SHA for 746caa6
tests/PHPStan/Rules/PhpDoc/data/bug-14206.php
@@ -14,4 +14,19 @@ public function test(PDO $db): void
14
$statement->setFetchMode(PDO::FETCH_COLUMN, 0);
15
$statement->execute();
16
}
17
+
18
+ public function test2(PDO $db): void
19
+ {
20
+ /** @var PDOStatement<int,array<string>> */
21
+ $statement = $db->prepare('SELECT foo FROM bar');
22
+ $statement->execute();
23
+ }
24
25
+ public function test3(PDO $db): void
26
27
+ /** @var PDOStatement<int,object> */
28
29
+ $statement->setFetchMode(PDO::FETCH_OBJ, 0);
30
31
32
0 commit comments