mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
fix class empty caused bug
This commit is contained in:
@@ -143,7 +143,7 @@ class AnnotationParser
|
|||||||
$inserted = [];
|
$inserted = [];
|
||||||
|
|
||||||
// 预处理:将Class的ergodic注解拼接到每个方法的注解列表前面,且按照顺序(修复 #365)
|
// 预处理:将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])) {
|
if (isset($append_ergodics[$method_name])) {
|
||||||
$this->annotation_map[$v]['methods_annotations'][$method_name] = array_merge($append_ergodics[$method_name], $annos);
|
$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_ID = 480;
|
||||||
|
|
||||||
public const VERSION = '2.8.9';
|
public const VERSION = '2.8.10';
|
||||||
|
|
||||||
private static $obj;
|
private static $obj;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user