update to 3.2.2, fix ergodic annotation order

This commit is contained in:
crazywhalecc 2023-06-10 14:27:27 +08:00
parent cee9b71a3f
commit 56b21fc155
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class AnnotationParser
// 用 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 的类注解,不作为类的注解解析,而是全部当作每个方法有注解,所以直接跳过

View File

@ -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 运行时偏好(环境信息&参数)