| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class PageScannerController extends AbstractController |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var PageScannerService |
||
| 14 | */ |
||
| 15 | protected $scanner; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Container |
||
| 19 | */ |
||
| 20 | protected $container; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ContainerBag |
||
| 24 | */ |
||
| 25 | protected $params; |
||
| 26 | |||
| 27 | public function __construct(PageScannerService $scanner, ParameterBagInterface $params) |
||
| 31 | } |
||
| 32 | |||
| 33 | public function scanAction() |
||
| 60 |
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.