Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 17, 2023
1 parent 9a6852c commit df67fd7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Bean/ReflectionUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,9 @@ public static function allowsType(\ReflectionType $type, string $checkType, ?str
{
if (null !== $className)
{
$typeStr = '\\' . $className;
$typeStr = $className;
}
}
elseif ('static' !== $typeStr)
{
$typeStr = '\\' . $typeStr;
}
}

return $typeStr === $checkType || \in_array($typeStr, $checkTypes) || is_subclass_of($checkType, $typeStr);
Expand Down

0 comments on commit df67fd7

Please sign in to comment.