1 | <?php |
||
12 | class ApiRequestInspector |
||
13 | { |
||
14 | /** @var ApiRequestAbstract */ |
||
15 | private $request = null; |
||
16 | |||
17 | public function __construct(array $parameters) |
||
21 | |||
22 | public function inspect() |
||
26 | |||
27 | private function setRequestReceivedAtApiEndpoint(array $parameters) |
||
35 | |||
36 | private function sanitizeIncludes() |
||
44 | |||
45 | private function isIncludeAllowed($field): bool |
||
55 | } |
||
56 |
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.