From 009991474508f9a71293e7b833b1f7ee93b3b840 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 25 Sep 2022 17:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Abstracts/TraitServer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Abstracts/TraitServer.php b/Abstracts/TraitServer.php index c599c33..0869945 100644 --- a/Abstracts/TraitServer.php +++ b/Abstracts/TraitServer.php @@ -21,7 +21,9 @@ trait TraitServer */ public function addProcess(string|array|BaseProcess $class): void { - if (is_string($class)) { + if (is_object($class)) { + $this->_process[] = $class; + } else if (is_string($class)) { $this->_process[] = $class; } else { foreach ($class as $name) {