mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 05:22:41 +00:00
unify null checks - avoid method call in favor of strict check
This commit is contained in:
parent
8428928fd6
commit
6cf147e8c8
35 changed files with 62 additions and 62 deletions
|
@ -289,7 +289,7 @@ class ClassRegistry {
|
|||
if (empty($param) && is_array($type)) {
|
||||
$param = $type;
|
||||
$type = 'Model';
|
||||
} elseif (is_null($param)) {
|
||||
} elseif ($param === null) {
|
||||
unset($_this->_config[$type]);
|
||||
} elseif (empty($param) && is_string($type)) {
|
||||
return isset($_this->_config[$type]) ? $_this->_config[$type] : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue