@@ -52,10 +52,10 @@ |
||
52 | 52 | */ |
53 | 53 | public function enrichOperation( |
54 | 54 | RouteInterface $route, |
55 | - ReflectionClass|ReflectionMethod $requestHandler, |
|
55 | + ReflectionClass | ReflectionMethod $requestHandler, |
|
56 | 56 | array &$operation, |
57 | 57 | ): void { |
58 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
58 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
59 | 59 | return; |
60 | 60 | } |
61 | 61 |
@@ -42,10 +42,10 @@ |
||
42 | 42 | */ |
43 | 43 | public function enrichOperation( |
44 | 44 | RouteInterface $route, |
45 | - ReflectionClass|ReflectionMethod $requestHandler, |
|
45 | + ReflectionClass | ReflectionMethod $requestHandler, |
|
46 | 46 | array &$operation, |
47 | 47 | ): void { |
48 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
48 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
49 | 49 | return; |
50 | 50 | } |
51 | 51 |
@@ -42,10 +42,10 @@ |
||
42 | 42 | */ |
43 | 43 | public function enrichOperation( |
44 | 44 | RouteInterface $route, |
45 | - ReflectionClass|ReflectionMethod $requestHandler, |
|
45 | + ReflectionClass | ReflectionMethod $requestHandler, |
|
46 | 46 | array &$operation, |
47 | 47 | ): void { |
48 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
48 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
49 | 49 | return; |
50 | 50 | } |
51 | 51 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function enrichOperation( |
48 | 48 | RouteInterface $route, |
49 | - ReflectionClass|ReflectionMethod $requestHandler, |
|
49 | + ReflectionClass | ReflectionMethod $requestHandler, |
|
50 | 50 | array &$operation, |
51 | 51 | ): void { |
52 | 52 | $variables = RouteParser::parseRoute($route->getPath()); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @return array<array-key, mixed>|null |
85 | 85 | */ |
86 | 86 | private function getRequestVariableSchema( |
87 | - ReflectionClass|ReflectionMethod $requestHandler, |
|
87 | + ReflectionClass | ReflectionMethod $requestHandler, |
|
88 | 88 | string $variableName, |
89 | 89 | ): ?array { |
90 | 90 | if ($requestHandler instanceof ReflectionMethod) { |
@@ -43,10 +43,10 @@ |
||
43 | 43 | */ |
44 | 44 | public function enrichOperation( |
45 | 45 | RouteInterface $route, |
46 | - ReflectionClass|ReflectionMethod $requestHandler, |
|
46 | + ReflectionClass | ReflectionMethod $requestHandler, |
|
47 | 47 | array &$operation, |
48 | 48 | ): void { |
49 | - if (! $requestHandler instanceof ReflectionMethod) { |
|
49 | + if (!$requestHandler instanceof ReflectionMethod) { |
|
50 | 50 | return; |
51 | 51 | } |
52 | 52 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
60 | 60 | { |
61 | - if (! $context instanceof ServerRequestInterface) { |
|
61 | + if (!$context instanceof ServerRequestInterface) { |
|
62 | 62 | return; |
63 | 63 | } |
64 | 64 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | */ |
65 | 65 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
66 | 66 | { |
67 | - if (! $context instanceof ServerRequestInterface) { |
|
67 | + if (!$context instanceof ServerRequestInterface) { |
|
68 | 68 | return; |
69 | 69 | } |
70 | 70 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
61 | 61 | { |
62 | - if (! $context instanceof ServerRequestInterface) { |
|
62 | + if (!$context instanceof ServerRequestInterface) { |
|
63 | 63 | return; |
64 | 64 | } |
65 | 65 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $type = $parameter->getType(); |
73 | - if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
73 | + if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) { |
|
74 | 74 | throw new InvalidArgumentException(sprintf( |
75 | 75 | 'To use the #[RequestQuery] annotation, the parameter "%s" must be typed with an object.', |
76 | 76 | ParameterResolverChain::stringifyParameter($parameter), |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator |
61 | 61 | { |
62 | - if (! $context instanceof ServerRequestInterface) { |
|
62 | + if (!$context instanceof ServerRequestInterface) { |
|
63 | 63 | return; |
64 | 64 | } |
65 | 65 |