| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class AuthenticationMiddleware |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var AuthenticationService |
||
| 23 | */ |
||
| 24 | protected $authenticationService; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * AuthenticationMiddleware constructor. |
||
| 28 | * |
||
| 29 | * @param AuthenticationServiceInterface $authenticationService |
||
| 30 | */ |
||
| 31 | public function __construct(AuthenticationServiceInterface $authenticationService) |
||
| 34 | } |
||
| 35 | |||
| 36 | public function __invoke(callable $handler) |
||
| 46 |
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.