1
0
mirror of synced 2024-12-15 07:36:03 +03:00

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

This commit is contained in:
jwage 2010-03-16 19:35:41 +00:00
parent 34cbb8af24
commit 19df601c25

View File

@ -240,7 +240,7 @@ class TaskNamespace extends AbstractNamespace
$printer->writeln($message, 'ERROR');
// Unable instantiate task or task is not valid
if ($task !== null) {
if (isset($task) && $task !== null) {
$printer->write(PHP_EOL);
$task->basicHelp(); // Fallback of not-valid task arguments
}