Closed dmanners closed 5 years ago
May I? :) I've just reproduced the errors. Can you assign it to me?
After cleaning up the first error, I got:
148 Property Magento\ImportExport\Model\Import::$_csvFactory has unknown class
Magento\ImportExport\Model\Export\Adapter\CsvFactor as its type.
158 Property Magento\ImportExport\Model\Import::$_uploaderFactory has unknown class
Magento\MediaStorage\Model\File\UploaderFactory as its type.
203 Parameter $csvFactory of method Magento\ImportExport\Model\Import::__construct() has invalid
typehint type Magento\ImportExport\Model\Export\Adapter\CsvFactory.
203 Parameter $uploaderFactory of method Magento\ImportExport\Model\Import::__construct() has
invalid typehint type Magento\MediaStorage\Model\File\UploaderFactory.
I could not found the \Magento\MediaStorage\Model\File\UploaderFactory nor its history. Do you know about it?
Hi @colares, \Magento\MediaStorage\Model\File\UploaderFactory is a factory class, created during Magento compilation from Uploader class. After cleaning up errors from initial comments, compiling Magento code, there shouldn't be any more phpstan errors from this file.
Mm.. Thank you, @denispapec! In fact I suspected that I had forgotten some step, since I did not find the class in the repository. I will compile Magento this time. Btw, that's my first time ever I'm interacting with a Magento's code :)
Hi @colares thanks for the question. Yes the factory classes during compilation sorry for not adding that information in original ticket.
Preconditions (*)
Steps to reproduce (*)
./vendor/bin/phpstan analyse -l 0 app/code/Magento/ImportExport/
Expected result (*)
Actual result (*)