This commit is contained in:
2021-01-05 15:23:04 +08:00
parent 6d57c89e7c
commit eec9beb753
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -8,6 +8,9 @@ interface SProcess
{ {
public function onHandler(\Swoole\Process $process); /**
* @param \Swoole\Process $process
*/
public function onHandler(\Swoole\Process $process): void;
} }
+1 -1
View File
@@ -36,7 +36,7 @@ class ServerInotify extends Process
* @param \Swoole\Process $process * @param \Swoole\Process $process
* @throws Exception * @throws Exception
*/ */
public function onHandler(\Swoole\Process $process) public function onHandler(\Swoole\Process $process): void
{ {
set_error_handler([$this, 'onErrorHandler']); set_error_handler([$this, 'onErrorHandler']);
$this->dirs = Config::get('inotify', false, [APP_PATH]); $this->dirs = Config::get('inotify', false, [APP_PATH]);