fix class empty caused bug

This commit is contained in:
Jerry
2023-06-13 09:23:34 +08:00
committed by Jerry Ma
parent cd7ed3dc05
commit fad14ca9bf
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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 运行时偏好(环境信息&参数)