Skip to content

Commit

Permalink
fix (some) tests failing on Win with php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Giunta authored and sebastianbergmann committed Nov 30, 2020
1 parent f40cf5b commit d61a9f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Util/PHP/WindowsPhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ final class WindowsPhpProcess extends DefaultPhpProcess
{
public function getCommand(array $settings, string $file = null): string
{
return '"' . parent::getCommand($settings, $file) . '"';
if (PHP_MAJOR_VERSION < 8) {
return '"' . parent::getCommand($settings, $file) . '"';
}

return parent::getCommand($settings, $file);
}

/**
Expand Down

0 comments on commit d61a9f7

Please sign in to comment.