We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0170315 + bd9c541 commit 3961f2eCopy full SHA for 3961f2e
src/Config/Parser/AttributeParser.php
@@ -4,6 +4,7 @@
4
5
namespace Overblog\GraphQLBundle\Config\Parser;
6
7
+use Overblog\GraphQLBundle\Annotation\Annotation;
8
use Overblog\GraphQLBundle\Config\Parser\MetadataParser\MetadataParser;
9
use ReflectionAttribute;
10
use ReflectionClass;
@@ -26,7 +27,7 @@ public static function getMetadatas(Reflector $reflector): array
26
27
case $reflector instanceof ReflectionProperty:
28
case $reflector instanceof ReflectionClassConstant:
29
if (is_callable([$reflector, 'getAttributes'])) {
- $attributes = $reflector->getAttributes();
30
+ $attributes = $reflector->getAttributes(Annotation::class, ReflectionAttribute::IS_INSTANCEOF);
31
}
32
33
0 commit comments