From 2a14e65b4327bc48f3ed3d7d025fd7f772ab34b5 Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Fri, 19 Jan 2018 13:39:35 +0900 Subject: [PATCH] Fixed: use $var === null instead of is_null($var) --- lib/Cake/Console/Command/Task/ControllerTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;