1 | <?php |
||
23 | class FileToObject |
||
24 | { |
||
25 | /** |
||
26 | * @var EntityManager |
||
27 | */ |
||
28 | private $manager; |
||
29 | private $entityClassName; |
||
30 | |||
31 | public function __construct(EntityManagerInterface $manager, ImageEntityNameResolver $nameResolver) |
||
38 | |||
39 | /** |
||
40 | * Fetches and returns the image object based on the file name. |
||
41 | * |
||
42 | * @param $filename |
||
43 | * |
||
44 | * @return mixed |
||
45 | * @internal param $entityClassName |
||
46 | */ |
||
47 | public function getObjectFromFilename($filename) |
||
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.