mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 23:15:06 +01:00
* fixes regression * Update BaseRemote.php Signed-off-by: Sergio Peris <22801379+sertxudev@users.noreply.github.com> --------- Signed-off-by: Sergio Peris <22801379+sertxudev@users.noreply.github.com>
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace Pest\Plugins\Tia\Baselines;
|
||||
|
||||
use Pest\Plugins\Tia\WatchPatterns;
|
||||
use Symfony\Component\Process\ExecutableFinder;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
/**
|
||||
@@ -38,10 +39,7 @@ abstract readonly class BaseRemote // @pest-arch-ignore-line
|
||||
|
||||
public function cliExists(): bool
|
||||
{
|
||||
$process = new Process(['which', $this->cliName()]);
|
||||
$process->run();
|
||||
|
||||
return $process->isSuccessful();
|
||||
return new ExecutableFinder()->find($this->cliName()) !== null;
|
||||
}
|
||||
|
||||
public function cliAuthenticated(): bool
|
||||
|
||||
Reference in New Issue
Block a user