diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index 9f2df96..b18d2df 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -99,7 +99,6 @@ class HotReload extends AbstractProcess */ public function readFile(string $directory): void { - var_dump($directory, str_ends_with($directory, '.php')); if (str_ends_with($directory, '.php') === true) { inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); } @@ -131,7 +130,7 @@ class HotReload extends AbstractProcess continue; } if (is_dir($data)) { - $this->readFile($data . DIRECTORY_SEPARATOR . '*'); + $this->readDirectory($data . DIRECTORY_SEPARATOR . '*'); } else { $this->readFile($data); }