Commit 19df601c authored by jwage's avatar jwage

[2.0] Fixing strict standards notice when you execute a task that does not exist

parent 34cbb8af
...@@ -240,7 +240,7 @@ class TaskNamespace extends AbstractNamespace ...@@ -240,7 +240,7 @@ class TaskNamespace extends AbstractNamespace
$printer->writeln($message, 'ERROR'); $printer->writeln($message, 'ERROR');
// Unable instantiate task or task is not valid // Unable instantiate task or task is not valid
if ($task !== null) { if (isset($task) && $task !== null) {
$printer->write(PHP_EOL); $printer->write(PHP_EOL);
$task->basicHelp(); // Fallback of not-valid task arguments $task->basicHelp(); // Fallback of not-valid task arguments
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment