From 22c11fca68f767390a430a8517a60a3b80873d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 13 Aug 2021 15:22:49 +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/Async.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Async.php b/System/Async.php index fe8a779c..053bc3e7 100644 --- a/System/Async.php +++ b/System/Async.php @@ -24,11 +24,11 @@ class Async extends Component /** * @param string $name - * @param TaskExecute|string $handler + * @param string $handler */ - public function addAsync(string $name, TaskExecute|string $handler) + public function addAsync(string $name, string $handler) { - static::$_absences[$name] = $handler::class; + static::$_absences[$name] = $handler; }