Skip to content

Commit

Permalink
fix class empty caused bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Jun 13, 2023
1 parent f0cba01 commit d3d64c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ZM/Annotation/AnnotationParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class_annotations: [
$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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ZM/ConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d3d64c8

Please sign in to comment.