magento-engcom / import-export-improvements

Open Software License 3.0
31 stars 29 forks source link

Call to Magento\ImportExport\Model\Source\Import\Behavior\Custom with constructor arguments #123

Closed dmanners closed 5 years ago

dmanners commented 5 years ago

Preconditions (*)

  1. 2.3-develop
  2. phpstan installed

Steps to reproduce (*)

  1. ./vendor/bin/phpstan analyse -l 0 app/code/Magento/ImportExport/Test/Unit/Model/Source/Import/Behavior/CustomTest.php

Expected result (*)

  1. No errors

Actual result (*)

 ------ ---------------------------------------------------------------------------------------------------------------------------------------------
  Line   Test/Unit/Model/Source/Import/Behavior/CustomTest.php
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------
  35     Class Magento\ImportExport\Model\Source\Import\Behavior\Custom does not have a constructor and must be instantiated without any parameters.
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------