This commit is contained in:
2021-12-11 17:35:44 +08:00
parent f3ad09ef66
commit 90e1f7eb29
+3 -1
View File
@@ -29,6 +29,8 @@ class Inotify
*/ */
public function __construct(protected array $dirs, public HotReload $process) public function __construct(protected array $dirs, public HotReload $process)
{ {
set_error_handler(fn() => function () {
});
} }
@@ -75,7 +77,7 @@ class Inotify
} }
//非重启类型 //非重启类型
if (str_ends_with($ev['name'], '.php')) { if (str_ends_with($ev['name'], '.php')) {
Timer::after(3000, fn()=>$this->reload()); Timer::after(3000, fn() => $this->reload());
$this->isReloading = TRUE; $this->isReloading = TRUE;
} }
} }