改名
This commit is contained in:
@@ -85,6 +85,9 @@ class Annotation extends BaseAnnotation
|
|||||||
foreach ($annotations as $annotation) {
|
foreach ($annotations as $annotation) {
|
||||||
$comment = $function->getDocComment();
|
$comment = $function->getDocComment();
|
||||||
$methodName = $function->getName();
|
$methodName = $function->getName();
|
||||||
|
if (!$comment) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
preg_match('/@(' . $annotation . ')\((.*?)\)/', $comment, $events);
|
preg_match('/@(' . $annotation . ')\((.*?)\)/', $comment, $events);
|
||||||
if (!isset($events[1])) {
|
if (!isset($events[1])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user