Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Oct 28, 2024
1 parent 255f90e commit 63ce8f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/PhpBinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Laravel\Horizon;

use Illuminate\Support\ProcessUtils;

class PhpBinary
{
/**
Expand All @@ -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;
}
}

0 comments on commit 63ce8f0

Please sign in to comment.