Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 1 | public function __construct(AuthenticationInterface $authentication) |
|
25 | { |
||
26 | 1 | $this->middleware = new AuthenticationErrorResponseMiddleware( |
|
|
|||
27 | 1 | $authentication, |
|
28 | new class() implements AuthenticationErrorHandlerInterface { |
||
29 | 1 | public function errorResponse(Request $request, Response $response, int $code): Response |
|
30 | { |
||
31 | 1 | throw HttpException::create($request, $response, $code); |
|
32 | } |
||
33 | } |
||
34 | ); |
||
35 | 1 | } |
|
36 | |||
51 |
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..