1 | <?php |
||
17 | class BinaryFileLister extends MigrationHandler implements FileListerInterface |
||
18 | { |
||
19 | /** @var \eZ\Bundle\EzPublishIOBundle\Migration\FileLister\FileIteratorInterface */ |
||
20 | private $fileList; |
||
21 | |||
22 | /** @var string Directory where files are stored, within the storage dir. Example: 'original' */ |
||
23 | private $filesDir; |
||
24 | |||
25 | /** |
||
26 | * @param \eZ\Bundle\EzPublishIOBundle\ApiLoader\HandlerFactory $metadataHandlerFactory |
||
27 | * @param \eZ\Bundle\EzPublishIOBundle\ApiLoader\HandlerFactory $binarydataHandlerFactory |
||
28 | * @param \Psr\Log\LoggerInterface $logger |
||
29 | * @param \Iterator $fileList |
||
30 | * @param string $filesDir Directory where files are stored, within the storage dir. Example: 'original' |
||
31 | */ |
||
32 | public function __construct( |
||
46 | |||
47 | public function countFiles() |
||
51 | |||
52 | public function loadMetadataList($limit = null, $offset = null) |
||
69 | } |
||
70 |
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.