diff --git a/System/Abstracts/BaseAnnotation.php b/System/Abstracts/BaseAnnotation.php index 9841b9a0..160d0dbd 100644 --- a/System/Abstracts/BaseAnnotation.php +++ b/System/Abstracts/BaseAnnotation.php @@ -108,6 +108,9 @@ abstract class BaseAnnotation extends Component { $array = []; foreach ($annotations as $annotation) { + if (!$comment) { + continue; + } preg_match('/@(' . $annotation . ')\((.*?)\)/', $comment, $events); if (!isset($events[1])) { continue;