From fae47bf2463008804d89db3f1986171c5e61d884 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 28 Jul 2020 08:19:51 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchConsole.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extend/catcher/CatchConsole.php b/extend/catcher/CatchConsole.php index 2d80789..326aa3f 100644 --- a/extend/catcher/CatchConsole.php +++ b/extend/catcher/CatchConsole.php @@ -46,9 +46,7 @@ class CatchConsole $lastPath = str_replace($this->parseNamespace(), '',pathinfo($command, PATHINFO_DIRNAME)); $namespace = $this->namespace . str_replace(DIRECTORY_SEPARATOR, '\\', $lastPath) . '\\'; $commandClass = $namespace . pathinfo($command, PATHINFO_FILENAME); - if (is_subclass_of($commandClass, Command::class)) { - $commands[] = $commandClass; - } + $commands[] = $commandClass; } }