This commit is contained in:
2020-12-14 19:11:51 +08:00
parent 627bfab070
commit 6e6daaa3cf
2 changed files with 24 additions and 2 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ namespace Annotation;
use ReflectionAttribute;
use ReflectionClass;
use ReflectionException;
use Snowflake\Abstracts\Component;
use Snowflake\Snowflake;
@@ -116,9 +117,9 @@ class Annotation extends Component
}
/**
* @param \ReflectionClass $reflect
* @param ReflectionClass $reflect
*/
private function targets(\ReflectionClass $reflect)
private function targets(ReflectionClass $reflect)
{
$attributes = $reflect->getAttributes();
if (count($attributes) < 1) {