Skip to content

Commit 0409cb2

Browse files
committed
Improve PHP 8.4+ support by avoiding implicitly nullable types
1 parent 16d653f commit 0409cb2

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-
public static function factory(\Closure $factory = null): \Closure
25+
public static function factory(?\Closure $factory = null): \Closure
2626
{
2727
if ($factory !== null) {
2828
self::$factory = $factory;

0 commit comments

Comments
 (0)