mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 12:44:51 +08:00
fix class empty caused bug
This commit is contained in:
parent
f0cba01bd7
commit
d3d64c8f06
@ -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);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user