diff --git a/lib/Cake/Console/Command/Task/ControllerTask.php b/lib/Cake/Console/Command/Task/ControllerTask.php index 07c1e8633..433329d6f 100644 --- a/lib/Cake/Console/Command/Task/ControllerTask.php +++ b/lib/Cake/Console/Command/Task/ControllerTask.php @@ -331,10 +331,10 @@ class ControllerTask extends BakeTask { public function bake($controllerName, $actions = '', $helpers = null, $components = null) { $this->out("\n" . __d('cake_console', 'Baking controller class for %s...', $controllerName), 1, Shell::QUIET); - if (is_null($helpers)) { + if ($helpers === null) { $helpers = array(); } - if (is_null($components)) { + if ($components === null) { $components = array(); } $isScaffold = ($actions === 'scaffold') ? true : false;