Skip to content

Commit

Permalink
Update command
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Jan 9, 2025
1 parent 9589dca commit 4237540
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function runAnnotate(string $enum, bool $force = false): bool

ob_start();

$succeeded = passthru($command . ' 2>&1') === null;
$succeeded = passthru('"' . PHP_BINARY . '" ' . $command . ' 2>&1') === null;

ob_end_clean();

Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function runEnum(string $command): stdClass
{
ob_start();

passthru(path(__DIR__ . '/../bin/enum') . " {$command} 2>&1", $status);
passthru('"' . PHP_BINARY . '" ' . path(__DIR__ . '/../bin/enum') . " {$command} 2>&1", $status);

$output = ob_get_clean();

Expand Down

0 comments on commit 4237540

Please sign in to comment.