Skip to content

Commit

Permalink
fix: solve syntax errors with older PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger committed Sep 16, 2022
1 parent 6c421c4 commit 680afcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/FunctionCheckTypehintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ public function shouldAcceptObjectMethodCallbackWithDNFTypehint()
*/
public function shouldAcceptStaticClassCallbackWithDNFTypehint()
{
self::assertFalse(_checkTypehint([CallbackWithDNFTypehintClass::class, 'testCallbackStatic'], new \RuntimeException()));
self::assertTrue(_checkTypehint([CallbackWithDNFTypehintClass::class, 'testCallbackStatic'], new CountableException()));
self::assertTrue(_checkTypehint([CallbackWithDNFTypehintClass::class, 'testCallbackStatic'], new ArrayAccessibleException()));
self::assertFalse(_checkTypehint(['React\Promise\CallbackWithDNFTypehintClass', 'testCallbackStatic'], new \RuntimeException()));
self::assertTrue(_checkTypehint(['React\Promise\CallbackWithDNFTypehintClass', 'testCallbackStatic'], new CountableException()));
self::assertTrue(_checkTypehint(['React\Promise\CallbackWithDNFTypehintClass', 'testCallbackStatic'], new ArrayAccessibleException()));
}

/** @test */
Expand Down

0 comments on commit 680afcf

Please sign in to comment.