fix class empty caused bug

This commit is contained in:
Jerry 2023-06-13 09:26:39 +08:00 committed by Jerry Ma
parent f0cba01bd7
commit d3d64c8f06
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ class AnnotationParser
$inserted = [];
// 预处理将Class的ergodic注解拼接到每个方法的注解列表前面且按照顺序修复 #365
foreach ($this->annotation_map[$v]['methods_annotations'] as $method_name => $annos) {
foreach (($this->annotation_map[$v]['methods_annotations'] ?? []) as $method_name => $annos) {
if (isset($append_ergodics[$method_name])) {
$this->annotation_map[$v]['methods_annotations'][$method_name] = array_merge($append_ergodics[$method_name], $annos);
}

View File

@ -30,7 +30,7 @@ class ConsoleApplication extends Application
{
public const VERSION_ID = 480;
public const VERSION = '2.8.9';
public const VERSION = '2.8.10';
private static $obj;