@@ -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 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return T[] |
85 | 85 | */ |
86 | - private function getAttributeInstances(ReflectionClass|ReflectionMethod|ReflectionParameter|ReflectionProperty $element, string $attributeName): array |
|
86 | + private function getAttributeInstances(ReflectionClass | ReflectionMethod | ReflectionParameter | ReflectionProperty $element, string $attributeName): array |
|
87 | 87 | { |
88 | 88 | if (!is_subclass_of($attributeName, ApiAttribute::class)) { |
89 | 89 | throw new Exception('This should not be used for attribute than are not ours'); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | { |
19 | 19 | public array $args = []; |
20 | 20 | |
21 | - public null|string|Type $type = null; |
|
21 | + public null | string | Type $type = null; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @param null|string $name Can be used to alias the field |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function __construct( |
28 | 28 | public ?string $name = null, |
29 | - null|string $type = null, |
|
29 | + null | string $type = null, |
|
30 | 30 | public ?string $description = null, |
31 | 31 | ) { |
32 | 32 | $this->type = $type; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * - `MyType[]|null` |
49 | 49 | * - `Collection<MyType>` |
50 | 50 | */ |
51 | - final protected function getTypeFromPhpDeclaration(ReflectionClass $class, null|string|Type $typeDeclaration, bool $isEntityId = false): ?Type |
|
51 | + final protected function getTypeFromPhpDeclaration(ReflectionClass $class, null | string | Type $typeDeclaration, bool $isEntityId = false): ?Type |
|
52 | 52 | { |
53 | 53 | if ($typeDeclaration === null || $typeDeclaration instanceof Type) { |
54 | 54 | return $typeDeclaration; |