Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Jan 11, 2022
1 parent 3b47f46 commit a0756d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/data/pdo-statement-generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public function bar(PDO $pdo) {

public function foobar(PDOStatement $statement) {
assertType('PdoStatementGeneric\Foo|false', $statement->fetchObject(Foo::class));
assertType('PdoStatementGeneric\Foo|false', $statement->fetchObject('PdoStatementGeneric\Foo'));
assertType('PdoStatementGeneric\Foo|false', $statement->fetchObject(__CLASS__));
}
}

Expand Down

0 comments on commit a0756d2

Please sign in to comment.