Skip to content

Commit e9abeb1

Browse files
Use PHP_BINARY instead of php as default php binary path for hyperf/watcher.
Co-authored-by: sy-records <52o@qq52o.cn>
1 parent 8bd8087 commit e9abeb1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

publish/watcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
return [
1515
'driver' => ScanFileDriver::class,
16-
'bin' => 'php',
16+
'bin' => PHP_BINARY,
1717
'watch' => [
1818
'dir' => ['app', 'config'],
1919
'file' => ['.env'],

src/Option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Option
1818
{
1919
protected string $driver = ScanFileDriver::class;
2020

21-
protected string $bin = 'php';
21+
protected string $bin = PHP_BINARY;
2222

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

0 commit comments

Comments
 (0)