Skip to content

Commit 0d0d725

Browse files
authored
Fixed bug that the path of php cannot contain spaces for watcher.
1 parent 0f84459 commit 0d0d725

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Option.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public function getDriver(): string
6060

6161
public function getBin(): string
6262
{
63+
if (str_contains($this->bin, ' ')) {
64+
// If the binary path contains spaces, we need to wrap it in quotes.
65+
return '"' . $this->bin . '"';
66+
}
67+
6368
return $this->bin;
6469
}
6570

0 commit comments

Comments
 (0)