Skip to content

Commit

Permalink
update to 3.2.2, fix ergodic annotation order
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Jun 10, 2023
1 parent cee9b71 commit 56b21fc
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 @@ -165,7 +165,7 @@ class_annotations: [
// 用 clone 的目的是生成个独立的对象,避免和 class 以及方法之间互相冲突
$copy = clone $vs;
$copy->method = $method->getName();
array_unshift($reflection_tree[$v]['methods_annotations'][$method->getName()], $copy);
$reflection_tree[$v]['methods_annotations'][$method->getName()][] = $copy;
$annotation_list[get_class($vs)][] = $copy;
}
// 标记为 Ergodic 的类注解,不作为类的注解解析,而是全部当作每个方法有注解,所以直接跳过
Expand Down
2 changes: 1 addition & 1 deletion src/ZM/Framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Framework
public const VERSION_ID = 722;

/** @var string 版本名称 */
public const VERSION = '3.2.1';
public const VERSION = '3.2.2';

/**
* @var RuntimePreferences 运行时偏好(环境信息&参数)
Expand Down

0 comments on commit 56b21fc

Please sign in to comment.