This commit is contained in:
2021-12-08 11:45:19 +08:00
parent 80713788c9
commit 5aad8d2001
+15 -1
View File
@@ -19,6 +19,20 @@ class NoteManager
private static array $_mapping = [];
/**
* @return void
*/
public static function clear()
{
static::$_classTarget = [];
static::$_classMethodNote = [];
static::$_classMethod = [];
static::$_classPropertyNote = [];
static::$_classProperty = [];
static::$_mapping = [];
}
/**
* @param ReflectionClass $class
*/
@@ -214,7 +228,7 @@ class NoteManager
public static function getSpecify_annotation(string $attribute, string $class, string $method = null): mixed
{
$class = self::getAttributeTrees($attribute, $class);
if (empty($class) || !isset($class['method'])){
if (empty($class) || !isset($class['method'])) {
return null;
}
if (empty($method)) {