[2.0] Fixing strict standards notice when you execute a task that does not exist
This commit is contained in:
parent
34cbb8af24
commit
19df601c25
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user