1 | <?php |
||
12 | final class OAuth2Middleware |
||
13 | { |
||
14 | /** @var AuthorizesRequests */ |
||
15 | private $tokenService; |
||
16 | |||
17 | /** @var string[] */ |
||
18 | private $ignoredUris; |
||
19 | |||
20 | /** |
||
21 | * Middleware constructor. |
||
22 | * @param AuthorizesRequests $tokenService |
||
23 | * @param \string[] $ignoredUris |
||
24 | */ |
||
25 | 5 | public function __construct(AuthorizesRequests $tokenService, array $ignoredUris = []) |
|
31 | |||
32 | |||
33 | /** |
||
34 | * @param callable $handler |
||
35 | * @return \Closure |
||
36 | */ |
||
37 | public function __invoke(callable $handler): \Closure |
||
48 | |||
49 | /** |
||
50 | * Returns whether a URL must NOT be authorized |
||
51 | * |
||
52 | * @param string $uri |
||
53 | * @return bool |
||
54 | */ |
||
55 | 2 | private function shouldSkipAuthorizationForUri(string $uri): bool |
|
59 | } |
||
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..