update project
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Orchestra\Sidekick;
|
||||
|
||||
use Symfony\Component\Process\ExecutableFinder;
|
||||
use Symfony\Component\Process\PhpExecutableFinder as SymfonyPhpExecutableFinder;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class PhpExecutableFinder extends SymfonyPhpExecutableFinder
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
#[\Override]
|
||||
public function find(bool $includeArgs = true): string|false
|
||||
{
|
||||
if ($herdPath = getenv('HERD_HOME')) {
|
||||
return (new ExecutableFinder)->find(name: 'php', extraDirs: [join_paths($herdPath, 'bin')]) ?? false;
|
||||
}
|
||||
|
||||
return parent::find($includeArgs);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user