Skip to content

Commit 6dfe8a5

Browse files
authored
Merge pull request #36 from WyriHaximus/unlock-php-8
2 parents 251ccaa + b262dfe commit 6dfe8a5

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
etc/qa/.phpunit.result.cache
12
var/*
23
!var/.gitkeep
34
vendor/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.4",
12+
"php": "^8 || ^7.4",
1313
"opis/closure": "^3.5",
1414
"react/event-loop": "^1.2",
1515
"react/promise": "^2.8",

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.

etc/qa/.phpunit.result.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/ClosureChildTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public function testExecuteClosure(): void
2828

2929
$result = $this->await($messenger->callRpc(
3030
MessageFactory::CLOSURE_EXECUTE,
31-
MessageFactory::rpc(static function () use ($data): int {
31+
/** @phpstan-ignore-next-line */
32+
MessageFactory::rpc(static function () use ($data) {
3233
return $data;
3334
})->getPayload()
3435
));

0 commit comments

Comments
 (0)