| 1 | <?php |
||
| 10 | class Magento1Initializer |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var \Symfony\Component\Console\Helper\HelperSet |
||
| 14 | */ |
||
| 15 | private $helperSet; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Magento1Initializer constructor. |
||
| 19 | * @param \Symfony\Component\Console\Helper\HelperSet $helperSet |
||
| 20 | */ |
||
| 21 | public function __construct(HelperSet $helperSet) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return \N98\Magento\Framework\App\Magerun |
||
| 28 | * @throws \Exception |
||
| 29 | */ |
||
| 30 | public function init() |
||
| 64 | } |
||
| 65 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: