diff --git a/System/Annotation/Annotation.php b/System/Annotation/Annotation.php index a5567e33..01ede8d4 100644 --- a/System/Annotation/Annotation.php +++ b/System/Annotation/Annotation.php @@ -85,6 +85,9 @@ class Annotation extends BaseAnnotation foreach ($annotations as $annotation) { $comment = $function->getDocComment(); $methodName = $function->getName(); + if (!$comment) { + continue; + } preg_match('/@(' . $annotation . ')\((.*?)\)/', $comment, $events); if (!isset($events[1])) {