diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3c5ae8..fa30861 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: - ubuntu-24.04 - windows-2022 php: + - 8.5 - 8.4 - 8.3 - 8.2 diff --git a/src/Process.php b/src/Process.php index 406e417..86c334a 100644 --- a/src/Process.php +++ b/src/Process.php @@ -121,7 +121,7 @@ public function __construct($cmd, $cwd = null, $env = null, $fds = null) if (null !== $env) { $this->env = array(); foreach ($env as $key => $value) { - $this->env[(binary) $key] = (binary) $value; + $this->env[(string) $key] = (string) $value; } } diff --git a/tests/AbstractProcessTest.php b/tests/AbstractProcessTest.php index 4a81d0b..8afe39b 100644 --- a/tests/AbstractProcessTest.php +++ b/tests/AbstractProcessTest.php @@ -70,7 +70,9 @@ public function testStartWithoutLoopAssignsLoopAutomatically() $process->start(); $ref = new \ReflectionProperty($process->stdin, 'loop'); - $ref->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $ref->setAccessible(true); + } $loop = $ref->getValue($process->stdin); $this->assertInstanceOf('React\EventLoop\LoopInterface', $loop);