Skip to content

Commit

Permalink
Add regression test for inherited template usage on @phpstan-self-out
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertMe committed Feb 8, 2024
1 parent 8f56bca commit 606e689
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/PHPStan/Analyser/data/self-out.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,10 @@ function () {

$i->addData(321);
assertType('SelfOut\\a<int>', $i);

$i->addData(random_bytes(3));
assertType('SelfOut\\a<int|non-empty-string>', $i);

$i->setData(true);
assertType('SelfOut\\a<true>', $i);
};

0 comments on commit 606e689

Please sign in to comment.