From c54057e79c72c40e3af971b4ea28f2c049776c1a Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 22 Nov 2023 09:23:59 +0800 Subject: [PATCH] eee --- Scanner.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scanner.php b/Scanner.php index 65bbf38..6a453b5 100644 --- a/Scanner.php +++ b/Scanner.php @@ -61,6 +61,9 @@ class Scanner extends Component } $attributes = $method->getAttributes(); foreach ($attributes as $attribute) { + if (!class_exists($attribute->getName())) { + continue; + } $attribute->newInstance()->dispatch($object, $method->getName()); } }