From 01bc9d84542f15a94b09f1cb567953d9a531c164 Mon Sep 17 00:00:00 2001 From: Julien Roche Date: Thu, 14 Sep 2023 19:11:02 +0200 Subject: [PATCH] use regex instead of Illuminate Str --- src/Domain/Insights/SyntaxCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ); }