From fb330119e45d4e0b759ef6569aa185c4e8a95c9e Mon Sep 17 00:00:00 2001 From: "Ralph J. Smit" <59207045+ralphjsmit@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:41:16 +0100 Subject: [PATCH] Update ReflectionClosure6Test.php --- tests/ReflectionClosure6Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ReflectionClosure6Test.php b/tests/ReflectionClosure6Test.php index 712851ce..d13a5e6f 100644 --- a/tests/ReflectionClosure6Test.php +++ b/tests/ReflectionClosure6Test.php @@ -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)';