Skip to content

Commit

Permalink
chore(php): fix PHP 8.2 deprecations
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
jrmajor authored and azjezz committed Oct 10, 2022
1 parent fe78ef2 commit 80c0553
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
php-version:
- "8.1"
- "8.2"
operating-system:
# MacOs has a floating-point problem.
# - "macos-latest"
Expand Down
6 changes: 6 additions & 0 deletions composer.json
Expand Up @@ -11,6 +11,7 @@
],
"require": {
"php": "~8.1.0",
"php": "~8.1.0 || ~8.2.0",
"ext-bcmath": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down Expand Up @@ -44,6 +45,11 @@
"Psl\\Tests\\Fixture\\": "tests/fixture"
}
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
}
},
"extra": {
"thanks": {
"name": "hhvm/hsl",
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Async/ParallelTest.php
Expand Up @@ -17,17 +17,17 @@ public function testParallel(): void

Async\concurrently([
static function () use ($spy): void {
Async\sleep(0.003);
Async\sleep(0.03);

$spy->value .= '1';
},
static function () use ($spy): void {
Async\sleep(0.001);
Async\sleep(0.01);

$spy->value .= '2';
},
static function () use ($spy): void {
Async\sleep(0.001);
Async\sleep(0.01);

$spy->value .= '3';
},
Expand Down

0 comments on commit 80c0553

Please sign in to comment.