| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function __invoke(callable $handler): \Closure |
||
| 38 | { |
||
| 39 | 3 | return function (RequestInterface $request, array $options) use ($handler) { |
|
| 40 | 2 | $uri = (string) $request->getUri(); |
|
| 41 | 2 | if (!$this->shouldSkipAuthorizationForUri($uri)) { |
|
| 42 | 1 | $request = $this->tokenService->authorize($request); |
|
| 43 | } |
||
| 44 | |||
| 45 | 2 | return $handler($request, $options); |
|
| 46 | 3 | }; |
|
| 47 | } |
||
| 48 | |||
| 60 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..