This commit is contained in:
2020-10-30 01:19:24 +08:00
parent c6eb063f28
commit 6e938d4d0b
+3
View File
@@ -108,6 +108,9 @@ abstract class BaseAnnotation extends Component
{ {
$array = []; $array = [];
foreach ($annotations as $annotation) { foreach ($annotations as $annotation) {
if (!$comment) {
continue;
}
preg_match('/@(' . $annotation . ')\((.*?)\)/', $comment, $events); preg_match('/@(' . $annotation . ')\((.*?)\)/', $comment, $events);
if (!isset($events[1])) { if (!isset($events[1])) {
continue; continue;