From eec9beb753016257708e7578fe3a6d4a8812ce83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 5 Jan 2021 15:23:04 +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/SProcess.php | 5 ++++- System/Process/ServerInotify.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/System/Process/SProcess.php b/System/Process/SProcess.php index e7a11f6d..b7d1252b 100644 --- a/System/Process/SProcess.php +++ b/System/Process/SProcess.php @@ -8,6 +8,9 @@ interface SProcess { - public function onHandler(\Swoole\Process $process); + /** + * @param \Swoole\Process $process + */ + public function onHandler(\Swoole\Process $process): void; } diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 2c12073b..39587bb2 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -36,7 +36,7 @@ class ServerInotify extends Process * @param \Swoole\Process $process * @throws Exception */ - public function onHandler(\Swoole\Process $process) + public function onHandler(\Swoole\Process $process): void { set_error_handler([$this, 'onErrorHandler']); $this->dirs = Config::get('inotify', false, [APP_PATH]);