Skip to content

Commit 8ee9761

Browse files
authored
Merge pull request #23 from WyriHaximus/add-php-8-support
Add PHP 8.x support
2 parents 9b9c987 + 189a9f9 commit 8ee9761

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.4",
12+
"php": "^8 || ^7.4",
1313
"react/event-loop": "^1.2",
1414
"react/promise": "^2.7",
15-
"wyrihaximus/react-child-process-closure": "^1.0",
16-
"wyrihaximus/react-child-process-messenger": "^4.0"
15+
"wyrihaximus/react-child-process-closure": "^1.2",
16+
"wyrihaximus/react-child-process-messenger": "^4.0.2"
1717
},
1818
"require-dev": {
1919
"wyrihaximus/async-test-utilities": "^4.2"

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/ChildProcessPromiseClosureTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public function testChildProcessPromiseClosure(): void
1818
{
1919
$data = 1337;
2020
$result = $this->await(
21-
childProcessPromiseClosure(Loop::get(), static fn (): array => [$data])
21+
childProcessPromiseClosure(Loop::get(), static function () use ($data): array {
22+
return [$data];
23+
})
2224
);
2325
Loop::run();
2426

0 commit comments

Comments
 (0)