From b94e3f6629ac1314cb74401aaf1b65bbfd9df81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 12 Aug 2021 16:16:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Process/ServerInotify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 1b26a8af..f0c683e9 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -157,7 +157,6 @@ class ServerInotify implements CustomProcess } - const LISTEN_TYPE = [IN_CREATE, IN_DELETE, IN_MODIFY, IN_MOVED_TO, IN_MOVED_FROM]; /** @@ -175,8 +174,9 @@ class ServerInotify implements CustomProcess return; } + $LISTEN_TYPE = [IN_CREATE, IN_DELETE, IN_MODIFY, IN_MOVED_TO, IN_MOVED_FROM]; foreach ($events as $ev) { - if (!in_array($ev['mask'], static::LISTEN_TYPE)) { + if (!in_array($ev['mask'], $LISTEN_TYPE)) { continue; } //非重启类型