diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index c3b0761..99c7b48 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -149,9 +149,7 @@ class HotReload extends AbstractProcess public function readFile(string $directory): void { if (str_ends_with($directory, '.php') === true) { - $wd = inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); - - $this->watches[] = $wd; + inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); } }