Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 11 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | View Code Duplication | public function __invoke( |
|
1 ignored issue
–
show
|
|||
39 | ServerRequestInterface $request, |
||
40 | ResponseInterface $response, |
||
41 | callable $next = null |
||
42 | ) |
||
43 | { |
||
44 | parent::__invoke($request, $response, $next); |
||
45 | $this->response = $this->action(); |
||
46 | |||
47 | return $this->next(); |
||
48 | } |
||
49 | |||
58 | } |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.