No console commands can be run - even the ones triggered by composer:update

We tried to run php artisan october:up (I know is deprecated) and other console commands with the following result:

In Command.php line 473:

  Symfony\Component\Console\Command\Command::addOption(): Argument #4 ($descr
  iption) must be of type string, null given, called in D:\work\projects\olbg\vendor\laravel\framework\src\Illuminate\Console\Concerns\HasParamete
  rs.php on line 32

I renamed vendor directory and ran composer:update but after installing the packages the same error was produced when composer tried to run:

> System\Console\ComposerScript::postAutoloadDump


> System\Console\ComposerScript::postUpdateCmd

Is it a known issue or do we have a configuration problem?

Hi @bogdanb

Check the full stack trace found in storage/logs/system.log, it might give some more hints about where the error is coming from.

I’ve found the problem, it was on our side.

The console commands that we registered had the method getOptions() either to return [] or options with the 5th parameter null. Removing the unused getOptions method or adding and empty string instead of null as the 5th param of each option solved the thing.
Thank you.

1 Like