Fixed: use $var === null instead of is_null($var)

This commit is contained in:
Koji Tanaka 2018-01-19 13:39:35 +09:00
parent d3d0501414
commit 2a14e65b43

View file

@ -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;