I've updated magento from 2.0.4 to 2.0.7 via composer. And then I tried to remove sample data using CLI
php70 bin/magento sampledata:remove
and got following error.
PHP Fatal error: Uncaught TypeError: Argument 1 passed to
Symfony\Component\Console\Input\ArrayInput::__construct()
must be of the type array, object given, called in
/srv/mat24/web/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php
on line 97 and defined in
/srv/mat24/web/vendor/symfony/console/Symfony/Component/Console/Input/ArrayInput.php:37
Stack trace:
#0 /srv/mat24/web/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(97): Symfony\Component\Console\Input\ArrayInput->__construct(Object(Magento\Framework\ObjectManager\ObjectManager))
#1 /srv/mat24/web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Symfony\Compone...', Array)
#2 /srv/mat24/web/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Compiled->create('Symfony\Compone...', Array)
#3 /srv/mat24/web/var/generation/Symfony/Component/Console/Input/ArrayInputFactory.php(43): Magento\Framework\Obje in /srv/mat24/web/vendor/symfony/console/Symfony/Component/Console/Input/ArrayInput.php on line 37
What could be the reason and how to fix that?