From b01c71ea5e86a2adf6aebcb5894a9d7c22beeea8 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Dec 2021 17:38:15 +0800 Subject: [PATCH] 1 --- kiri-engine/FileListen/Inotify.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index d27dc84b..7305e6ed 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -29,8 +29,14 @@ class Inotify */ public function __construct(protected array $dirs, public HotReload $process) { - set_error_handler(fn() => function () { - }); + set_error_handler([$this, 'error']); + set_exception_handler([$this, 'error']); + } + + + public function error() + { + }