-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php8: address ReflectionParameter::getClass deprecation
- Loading branch information
1 parent
6fe0751
commit 3011bbe
Showing
4 changed files
with
74 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace React\Promise; | ||
|
||
use InvalidArgumentException; | ||
|
||
class CallbackWithTypehintClass | ||
{ | ||
public function __invoke(InvalidArgumentException $e) | ||
{ | ||
} | ||
|
||
public function testCallback(InvalidArgumentException $e) | ||
{ | ||
} | ||
|
||
public static function testCallbackStatic(InvalidArgumentException $e) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace React\Promise; | ||
|
||
use InvalidArgumentException; | ||
use RuntimeException; | ||
|
||
class CallbackWithUnionTypehintClass | ||
{ | ||
public function __invoke(RuntimeException|InvalidArgumentException $e) | ||
{ | ||
} | ||
|
||
public function testCallback(RuntimeException|InvalidArgumentException $e) | ||
{ | ||
} | ||
|
||
public static function testCallbackStatic(RuntimeException|InvalidArgumentException $e) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace React\Promise; | ||
|
||
class CallbackWithoutTypehintClass | ||
{ | ||
public function __invoke() | ||
{ | ||
} | ||
|
||
public function testCallback() | ||
{ | ||
} | ||
|
||
public static function testCallbackStatic() | ||
{ | ||
} | ||
} |