From 63ce8f01022e198ada9b35dd5a355d7f819644e1 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 28 Oct 2024 10:58:00 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/PhpBinary.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/PhpBinary.php b/src/PhpBinary.php index aa8476c0..18c5dc91 100644 --- a/src/PhpBinary.php +++ b/src/PhpBinary.php @@ -2,8 +2,6 @@ namespace Laravel\Horizon; -use Illuminate\Support\ProcessUtils; - class PhpBinary { /** @@ -13,10 +11,8 @@ class PhpBinary */ public static function path() { - if (function_exists('Illuminate\Support\php_binary')) { - return ProcessUtils::escapeArgument(\Illuminate\Support\php_binary()); - } + $escape = '\\' === DIRECTORY_SEPARATOR ? '"' : '\''; - return ProcessUtils::escapeArgument(PHP_BINARY); + return $escape.PHP_BINARY.$escape; } }