Skip to content

Commit

Permalink
Use PHP_BINARY instead of deprecated Runtime::getRawBinary()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 28, 2024
1 parent 9320731 commit 982c7a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Util/PHP/AbstractPhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Util\PHP;

use const PHP_BINARY;
use const PHP_SAPI;
use function array_keys;
use function array_merge;
Expand Down Expand Up @@ -164,7 +165,7 @@ public function getCommand(array $settings, ?string $file = null): array
$runtime = new Runtime;

$command = [];
$command[] = $runtime->getRawBinary();
$command[] = PHP_BINARY;

if ($runtime->hasPCOV()) {
$settings = array_merge(
Expand Down

0 comments on commit 982c7a0

Please sign in to comment.