-
-
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.
Merge pull request #197 from SimonFrings/deprecated
Add PHP 8 support and address deprecation of ReflectionType::getClass()
- Loading branch information
Showing
7 changed files
with
143 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ jobs: | |
strategy: | ||
matrix: | ||
php: | ||
- 8.0 | ||
- 7.4 | ||
- 7.3 | ||
- 7.2 | ||
|
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
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() | ||
{ | ||
} | ||
} |