From 19df601c259296f18805b5c349cf224cd5f14769 Mon Sep 17 00:00:00 2001 From: jwage Date: Tue, 16 Mar 2010 19:35:41 +0000 Subject: [PATCH] [2.0] Fixing strict standards notice when you execute a task that does not exist --- lib/Doctrine/Common/Cli/TaskNamespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Common/Cli/TaskNamespace.php b/lib/Doctrine/Common/Cli/TaskNamespace.php index b75cdec8f..43ba4ac7a 100644 --- a/lib/Doctrine/Common/Cli/TaskNamespace.php +++ b/lib/Doctrine/Common/Cli/TaskNamespace.php @@ -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 }