diff --git a/src/ZM/Annotation/AnnotationParser.php b/src/ZM/Annotation/AnnotationParser.php index 641ab148..7aabc72b 100644 --- a/src/ZM/Annotation/AnnotationParser.php +++ b/src/ZM/Annotation/AnnotationParser.php @@ -165,7 +165,7 @@ class AnnotationParser // 用 clone 的目的是生成个独立的对象,避免和 class 以及方法之间互相冲突 $copy = clone $vs; $copy->method = $method->getName(); - $reflection_tree[$v]['methods_annotations'][$method->getName()][] = $copy; + array_unshift($reflection_tree[$v]['methods_annotations'][$method->getName()], $copy); $annotation_list[get_class($vs)][] = $copy; } } diff --git a/src/ZM/Framework.php b/src/ZM/Framework.php index 48298625..dce6b9c2 100644 --- a/src/ZM/Framework.php +++ b/src/ZM/Framework.php @@ -50,7 +50,7 @@ class Framework public const VERSION_ID = 716; /** @var string 版本名称 */ - public const VERSION = '3.1.10'; + public const VERSION = '3.1.11'; /** * @var RuntimePreferences 运行时偏好(环境信息&参数)