Skip to content

Commit

Permalink
Improve PHP 8.4+ support by avoiding implicitly nullable types
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed May 22, 2024
1 parent 16d653f commit 2e15f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"require": {
"php": ">=8.1",
"react/event-loop": "^1.2",
"react/promise": "^3.0 || ^2.8 || ^1.2.1"
"react/promise": "^3.2@dev || ^2.8 || ^1.2.1"
},
"require-dev": {
"phpstan/phpstan": "1.10.39",
Expand Down
2 changes: 1 addition & 1 deletion src/FiberFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function create(): FiberInterface
return (self::factory())();
}

public static function factory(\Closure $factory = null): \Closure
public static function factory(?\Closure $factory = null): \Closure
{
if ($factory !== null) {
self::$factory = $factory;
Expand Down

0 comments on commit 2e15f70

Please sign in to comment.