Skip to content

Commit

Permalink
Update ReflectionClosure6Test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Jan 22, 2025
1 parent b9082aa commit fb33011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ReflectionClosure6Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Tests\Fixtures\Model;
use Tests\Fixtures\RegularClass;

test('resolve instanceof with class_exists()', function () {
test('resolve instanceof with expression', function () {
$f1 = fn (Baz $a) => $this instanceof (Forest::class); // Turning `instanceof` into an expression results into this incorrect compilation
$e1 = 'fn (\Foo\Bar $a) => $this instanceof (\Foo\Baz\Qux\Forest::class)';

Expand Down

0 comments on commit fb33011

Please sign in to comment.