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]);