This commit is contained in:
2020-10-30 01:18:24 +08:00
parent 0190ceff70
commit c6eb063f28
+3
View File
@@ -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])) {