This commit is contained in:
nuno maduro
2026-05-02 17:15:46 +01:00
parent f247dd8e7b
commit 8a14056111

View File

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Pest\Plugins\Tia; namespace Pest\Plugins\Tia;
use Pest\Exceptions\MissingDependency;
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;
/** /**
@ -222,7 +223,7 @@ final readonly class ChangedFiles
$process->run(); $process->run();
if (! $process->isSuccessful()) { if (! $process->isSuccessful()) {
return null; throw new MissingDependency('Tia mode', 'git');
} }
$branch = trim($process->getOutput()); $branch = trim($process->getOutput());
@ -261,7 +262,7 @@ final readonly class ChangedFiles
$process->run(); $process->run();
if (! $process->isSuccessful()) { if (! $process->isSuccessful()) {
return []; throw new MissingDependency('Tia mode', 'git');
} }
return $this->splitLines($process->getOutput()); return $this->splitLines($process->getOutput());
@ -279,7 +280,7 @@ final readonly class ChangedFiles
$process->run(); $process->run();
if (! $process->isSuccessful()) { if (! $process->isSuccessful()) {
return []; throw new MissingDependency('Tia mode', 'git');
} }
$output = $process->getOutput(); $output = $process->getOutput();
@ -329,7 +330,7 @@ final readonly class ChangedFiles
$process->run(); $process->run();
if (! $process->isSuccessful()) { if (! $process->isSuccessful()) {
return null; throw new MissingDependency('Tia mode', 'git');
} }
$sha = trim($process->getOutput()); $sha = trim($process->getOutput());