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()); } }