diff --git a/src/ZM/Annotation/AnnotationParser.php b/src/ZM/Annotation/AnnotationParser.php index bded6082..70d8dfe0 100644 --- a/src/ZM/Annotation/AnnotationParser.php +++ b/src/ZM/Annotation/AnnotationParser.php @@ -193,7 +193,7 @@ class AnnotationParser } } // 预处理:将Class的ergodic注解拼接到每个方法的注解列表前面,且按照顺序(修复 #365) - foreach ($reflection_tree[$v]['methods_annotations'] as $method_name => $annos) { + foreach (($reflection_tree[$v]['methods_annotations'] ?? []) as $method_name => $annos) { if (isset($append_ergodics[$method_name])) { $reflection_tree[$v]['methods_annotations'][$method_name] = array_merge($append_ergodics[$method_name], $annos); } diff --git a/src/ZM/Framework.php b/src/ZM/Framework.php index 96943133..bd394f47 100644 --- a/src/ZM/Framework.php +++ b/src/ZM/Framework.php @@ -50,7 +50,7 @@ class Framework public const VERSION_ID = 723; /** @var string 版本名称 */ - public const VERSION = '3.2.3'; + public const VERSION = '3.2.4'; /** * @var RuntimePreferences 运行时偏好(环境信息&参数)