Skip to content

Commit ab5bab9

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 55b3275 commit ab5bab9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Support/PhpExecutableFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class PhpExecutableFinder extends SymfonyPhpExecutableFinder
1515
public function find(bool $includeArgs = true): string|false
1616
{
1717
if ($herdPath = getenv('HERD_HOME')) {
18-
return (new ExecutableFinder)->find('php', false, [join_paths($herdPath, 'bin')]);
18+
return (new ExecutableFinder)->find(name: 'php', extraDirs: [join_paths($herdPath, 'bin')]) ?? false;
1919
}
2020

2121
return parent::find($includeArgs);
2222
}
23-
}
23+
}

src/functions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,15 @@ function phpunit_version_compare(string $version, ?string $operator = null)
405405

406406
/**
407407
* Determine the PHP Binary.
408-
*
408+
*
409409
* @api
410-
*
411-
* @param bool $escape
410+
*
411+
* @param bool $escape
412412
* @return string
413413
*/
414-
function php_binary(bool $escape = false): string
414+
function php_binary(bool $escape = false): string
415415
{
416-
$phpBinary = (new Support\PhpExecutableFinder)->find(false) ?: PHP_BINARY;
416+
$phpBinary = (new Support\PhpExecutableFinder)->find(false) ?: 'php';
417417

418418
return $escape === true ? ProcessUtils::escapeArgument((string) $phpBinary) : $phpBinary;
419419
}

0 commit comments

Comments
 (0)