Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Jan 8, 2022
1 parent 0d5e8b6 commit 5ae785f
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 5ae785f

Please sign in to comment.