-
-
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.
feat: add support for DNF types on PHP 8.2
- Loading branch information
Showing
4 changed files
with
88 additions
and
8 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
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,22 @@ | ||
<?php | ||
|
||
namespace React\Promise; | ||
|
||
use RuntimeException; | ||
|
||
class ArrayAccessibleException extends RuntimeException implements \ArrayAccess | ||
{ | ||
public function offsetExists(mixed $offset): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function offsetGet(mixed $offset): mixed | ||
{ | ||
return $offset; | ||
} | ||
|
||
public function offsetSet(mixed $offset, mixed $value): void {} | ||
|
||
public function offsetUnset(mixed $offset): void {} | ||
} |
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 Countable; | ||
use RuntimeException; | ||
|
||
class CallbackWithDNFTypehintClass | ||
{ | ||
public function __invoke((RuntimeException&Countable)|(RuntimeException&\ArrayAccess) $e) | ||
{ | ||
} | ||
|
||
public function testCallback((RuntimeException&Countable)|(RuntimeException&\ArrayAccess) $e) | ||
{ | ||
} | ||
|
||
public static function testCallbackStatic((RuntimeException&Countable)|(RuntimeException&\ArrayAccess) $e) | ||
{ | ||
} | ||
} |