From 6c40febe42644cf492e35ac07070d3234fb7ce0b Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Wed, 24 May 2023 20:59:31 +0800 Subject: [PATCH] fix ergodic annotation parser, update to 3.1.12 --- src/ZM/Annotation/AnnotationParser.php | 2 ++ src/ZM/Framework.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ZM/Annotation/AnnotationParser.php b/src/ZM/Annotation/AnnotationParser.php index 46c02198..c8af471b 100644 --- a/src/ZM/Annotation/AnnotationParser.php +++ b/src/ZM/Annotation/AnnotationParser.php @@ -168,6 +168,8 @@ class AnnotationParser array_unshift($reflection_tree[$v]['methods_annotations'][$method->getName()], $copy); $annotation_list[get_class($vs)][] = $copy; } + // 标记为 Ergodic 的类注解,不作为类的注解解析,而是全部当作每个方法有注解,所以直接跳过 + continue; } // 预处理3:调用自定义解析器 diff --git a/src/ZM/Framework.php b/src/ZM/Framework.php index d2ec4765..abf1a701 100644 --- a/src/ZM/Framework.php +++ b/src/ZM/Framework.php @@ -50,7 +50,7 @@ class Framework public const VERSION_ID = 717; /** @var string 版本名称 */ - public const VERSION = '3.1.11'; + public const VERSION = '3.1.12'; /** * @var RuntimePreferences 运行时偏好(环境信息&参数)