Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | private function doLoadGrid(GridContext $context): Grid |
||
52 | { |
||
53 | // find the agent and get the grid metadata. |
||
54 | $agent = $this->agentFinder->findFor($context->getClassFqn()); |
||
55 | |||
56 | $real = $agent->getCanonicalClassFqn($context->getClassFqn()); |
||
57 | $gridMetadata = $this->metadataFactory->getGridMetadata($real, $context->getVariant()); |
||
58 | |||
59 | return new Grid( |
||
60 | $this->gridViewFactory, |
||
61 | $this->actionPerformer, |
||
62 | $agent, |
||
63 | $context, |
||
64 | $gridMetadata |
||
65 | ); |
||
66 | } |
||
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.