diff --git a/src/Domain/Insights/SyntaxCheck.php b/src/Domain/Insights/SyntaxCheck.php index ee87f368..4b4433d9 100644 --- a/src/Domain/Insights/SyntaxCheck.php +++ b/src/Domain/Insights/SyntaxCheck.php @@ -78,7 +78,7 @@ private function getBinary(): string return sprintf( '%s %s', - (string) Str::of(Config::getExecutablePath('php'))->replace(' ', '\ '), + (string) preg_replace('#\\s+#', '\\ ',Config::getExecutablePath('php')), escapeshellarg($parentPath . '/parallel-lint') ); }