Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
Declaration of Intechnic\InPortal\Core\kernel\Console\Command\CompletionCommand::setApplication()
should be compatible with Symfony\Component\Console\Command\Command::setApplication(Symfony\Component\Console\Application $application = NULL)   

Solution

...


 
Declaration of Intechnic\InPortal\Core\kernel\Console\Command\AbstractCommand::setApplication()
should be compatible with Symfony\Component\Console\Command\Command::setApplication(Symfony\Component\Console\Application $application = NULL) 

Solution

  1. locate all declarations of "setApplication" method where "ConsoleApplication" is being used
  2. change method declaration to use "Symfony\Component\Console\Application"

...

  1. class
  2. at method beginning check that instance of "ConsoleApplication"

...

  1. is being used

...

  1. and throw InvalidArgumentException otherwise

Related Tasks