Skip to content

Commit

Permalink
Use PHP_BINARY instead of php as default php binary path for `hyp…
Browse files Browse the repository at this point in the history
…erf/watcher`.

Co-authored-by: sy-records <[email protected]>
  • Loading branch information
hongweipeng and sy-records authored Apr 9, 2024
1 parent 8bd8087 commit e9abeb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion publish/watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

return [
'driver' => ScanFileDriver::class,
'bin' => 'php',
'bin' => PHP_BINARY,
'watch' => [
'dir' => ['app', 'config'],
'file' => ['.env'],
Expand Down
2 changes: 1 addition & 1 deletion src/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Option
{
protected string $driver = ScanFileDriver::class;

protected string $bin = 'php';
protected string $bin = PHP_BINARY;

protected string $command = 'vendor/hyperf/watcher/watcher.php start';

Expand Down

0 comments on commit e9abeb1

Please sign in to comment.