diff --git a/framework/base/Component.php b/framework/base/Component.php index ee17b7e4c1..21880846fc 100644 --- a/framework/base/Component.php +++ b/framework/base/Component.php @@ -566,7 +566,7 @@ class Component extends Object /** * Returns all behaviors attached to this component. - * @return Behavior[]|null list of behaviors attached to this component + * @return Behavior[] list of behaviors attached to this component */ public function getBehaviors() { diff --git a/framework/base/Module.php b/framework/base/Module.php index e310eec14a..e631d87498 100644 --- a/framework/base/Module.php +++ b/framework/base/Module.php @@ -305,7 +305,7 @@ class Module extends ServiceLocator /** * Returns current module version. * If version is not explicitly set, [[defaultVersion()]] method will be used to determine its value. - * @return string|callable the version of this module. + * @return string the version of this module. * @since 2.0.11 */ public function getVersion() @@ -342,7 +342,7 @@ class Module extends ServiceLocator /** * Returns default module version. * Child class may override this method to provide more specific version detection. - * @return string|callable the version of this module. + * @return string the version of this module. * @since 2.0.11 */ protected function defaultVersion()