Skip to content

Commit

Permalink
Add PHP 8.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Feb 19, 2022
1 parent 9b9c987 commit 189a9f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
}
],
"require": {
"php": "^7.4",
"php": "^8 || ^7.4",
"react/event-loop": "^1.2",
"react/promise": "^2.7",
"wyrihaximus/react-child-process-closure": "^1.0",
"wyrihaximus/react-child-process-messenger": "^4.0"
"wyrihaximus/react-child-process-closure": "^1.2",
"wyrihaximus/react-child-process-messenger": "^4.0.2"
},
"require-dev": {
"wyrihaximus/async-test-utilities": "^4.2"
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tests/ChildProcessPromiseClosureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public function testChildProcessPromiseClosure(): void
{
$data = 1337;
$result = $this->await(
childProcessPromiseClosure(Loop::get(), static fn (): array => [$data])
childProcessPromiseClosure(Loop::get(), static function () use ($data): array {
return [$data];
})
);
Loop::run();

Expand Down

0 comments on commit 189a9f9

Please sign in to comment.