mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 01:56:35 +08:00
Few quick fixes to make IDE happy
This commit is contained in:
@ -568,7 +568,7 @@ class Component extends BaseObject
|
|||||||
}
|
}
|
||||||
if ($removed) {
|
if ($removed) {
|
||||||
$this->_events[$name] = array_values($this->_events[$name]);
|
$this->_events[$name] = array_values($this->_events[$name]);
|
||||||
return $removed;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -158,7 +158,7 @@ class Event extends BaseObject
|
|||||||
}
|
}
|
||||||
if ($removed) {
|
if ($removed) {
|
||||||
self::$_events[$name][$class] = array_values(self::$_events[$name][$class]);
|
self::$_events[$name][$class] = array_values(self::$_events[$name][$class]);
|
||||||
return $removed;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -425,7 +425,7 @@ class Module extends ServiceLocator
|
|||||||
Yii::debug("Loading module: $id", __METHOD__);
|
Yii::debug("Loading module: $id", __METHOD__);
|
||||||
/* @var $module Module */
|
/* @var $module Module */
|
||||||
$module = Yii::createObject($this->_modules[$id], [$id, $this]);
|
$module = Yii::createObject($this->_modules[$id], [$id, $this]);
|
||||||
$module->setInstance($module);
|
$module::setInstance($module);
|
||||||
return $this->_modules[$id] = $module;
|
return $this->_modules[$id] = $module;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user