Skip to content

Commit 680afcf

Browse files
committed
fix: solve syntax errors with older PHP versions
1 parent 6c421c4 commit 680afcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/FunctionCheckTypehintTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public function shouldAcceptObjectMethodCallbackWithDNFTypehint()
145145
*/
146146
public function shouldAcceptStaticClassCallbackWithDNFTypehint()
147147
{
148-
self::assertFalse(_checkTypehint([CallbackWithDNFTypehintClass::class, 'testCallbackStatic'], new \RuntimeException()));
149-
self::assertTrue(_checkTypehint([CallbackWithDNFTypehintClass::class, 'testCallbackStatic'], new CountableException()));
150-
self::assertTrue(_checkTypehint([CallbackWithDNFTypehintClass::class, 'testCallbackStatic'], new ArrayAccessibleException()));
148+
self::assertFalse(_checkTypehint(['React\Promise\CallbackWithDNFTypehintClass', 'testCallbackStatic'], new \RuntimeException()));
149+
self::assertTrue(_checkTypehint(['React\Promise\CallbackWithDNFTypehintClass', 'testCallbackStatic'], new CountableException()));
150+
self::assertTrue(_checkTypehint(['React\Promise\CallbackWithDNFTypehintClass', 'testCallbackStatic'], new ArrayAccessibleException()));
151151
}
152152

153153
/** @test */

0 commit comments

Comments
 (0)