Skip to content

Commit 0c60cd1

Browse files
authored
Merge pull request #87 from clue-labs/nullable-v4
Improve PHP 8.4+ support by avoiding implicitly nullable types
2 parents 9c3dc0e + 0409cb2 commit 0c60cd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"require":{
2929
"php": ">=8.1",
3030
"react/event-loop": "^1.2",
31-
"react/promise": "^3.0 || ^2.8 || ^1.2.1"
31+
"react/promise": "^3.2 || ^2.8 || ^1.2.1"
3232
},
3333
"require-dev":{
3434
"phpstan/phpstan": "1.10.39",

‎src/FiberFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function create(): FiberInterface
2222
return (self::factory())();
2323
}
2424

25-
publicstaticfunctionfactory(\Closure$factory = null): \Closure
25+
publicstaticfunctionfactory(?\Closure$factory = null): \Closure
2626
{
2727
if ($factory !== null){
2828
self::$factory = $factory;

0 commit comments

Comments
(0)