mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed: use $var === null instead of is_null($var)
This commit is contained in:
parent
d3d0501414
commit
2a14e65b43
1 changed files with 2 additions and 2 deletions
|
@ -331,10 +331,10 @@ class ControllerTask extends BakeTask {
|
||||||
public function bake($controllerName, $actions = '', $helpers = null, $components = null) {
|
public function bake($controllerName, $actions = '', $helpers = null, $components = null) {
|
||||||
$this->out("\n" . __d('cake_console', 'Baking controller class for %s...', $controllerName), 1, Shell::QUIET);
|
$this->out("\n" . __d('cake_console', 'Baking controller class for %s...', $controllerName), 1, Shell::QUIET);
|
||||||
|
|
||||||
if (is_null($helpers)) {
|
if ($helpers === null) {
|
||||||
$helpers = array();
|
$helpers = array();
|
||||||
}
|
}
|
||||||
if (is_null($components)) {
|
if ($components === null) {
|
||||||
$components = array();
|
$components = array();
|
||||||
}
|
}
|
||||||
$isScaffold = ($actions === 'scaffold') ? true : false;
|
$isScaffold = ($actions === 'scaffold') ? true : false;
|
||||||
|
|
Loading…
Reference in a new issue