1 | <?php |
||
10 | class GridFactory |
||
11 | { |
||
12 | /** |
||
13 | * @var AgentFinder |
||
14 | */ |
||
15 | private $agentFinder; |
||
16 | |||
17 | /** |
||
18 | * @var GridMetadataFactory |
||
19 | */ |
||
20 | private $metadataFactory; |
||
21 | |||
22 | /** |
||
23 | * @var ActionPerformer |
||
24 | */ |
||
25 | private $actionPerformer; |
||
26 | |||
27 | /** |
||
28 | * @var GridViewFactory |
||
29 | */ |
||
30 | private $gridViewFactory; |
||
31 | |||
32 | public function __construct( |
||
43 | |||
44 | public function createGrid(string $classFqn, array $context = []): Grid |
||
50 | |||
51 | private function doLoadGrid(GridContext $context): Grid |
||
67 | } |
||
68 |
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.