@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * |
54 | 54 | * @return null|T |
55 | 55 | */ |
56 | - public function getAttribute(ReflectionClass|ReflectionProperty|ReflectionMethod|ReflectionParameter $element, string $attributeName): ?ApiAttribute |
|
56 | + public function getAttribute(ReflectionClass | ReflectionProperty | ReflectionMethod | ReflectionParameter $element, string $attributeName): ?ApiAttribute |
|
57 | 57 | { |
58 | 58 | $attributes = $this->getAttributeInstances($element, $attributeName); |
59 | 59 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @return T[] |
69 | 69 | */ |
70 | - private function getAttributeInstances(ReflectionClass|ReflectionMethod|ReflectionParameter|ReflectionProperty $element, string $attributeName): array |
|
70 | + private function getAttributeInstances(ReflectionClass | ReflectionMethod | ReflectionParameter | ReflectionProperty $element, string $attributeName): array |
|
71 | 71 | { |
72 | 72 | if (!is_subclass_of($attributeName, ApiAttribute::class)) { |
73 | 73 | throw new Exception(self::class . ' cannot be used for attribute than are not part of `ecodev/graphql-doctrine`.'); |