diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index cba532bf..b4b15b91 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -186,7 +186,7 @@ class ServerInotify extends Process foreach ($this->watchFiles as $wd) { try { @inotify_rm_watch($this->inotify, $wd); - } catch (Exception $exception) { + } catch (\Error|Exception $exception) { $this->debug($exception->getMessage()); } finally { $this->watchFiles = [];