Skip to content

Commit 982c7a0

Browse files
Use PHP_BINARY instead of deprecated Runtime::getRawBinary()
1 parent 9320731 commit 982c7a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Util/PHP/AbstractPhpProcess.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Util\PHP;
1111

12+
use const PHP_BINARY;
1213
use const PHP_SAPI;
1314
use function array_keys;
1415
use function array_merge;
@@ -164,7 +165,7 @@ public function getCommand(array $settings, ?string $file = null): array
164165
$runtime = new Runtime;
165166

166167
$command = [];
167-
$command[] = $runtime->getRawBinary();
168+
$command[] = PHP_BINARY;
168169

169170
if ($runtime->hasPCOV()) {
170171
$settings = array_merge(

0 commit comments

Comments
 (0)