Let IDE work better with ClassRegistry::init()

This small change will allow some IDEs like NetBeans to work with returned object like with a instance of $class parameter.
I`m sure, this will help Cake users a lot!
This commit is contained in:
tgskiv 2015-01-27 19:06:46 +02:00
parent b5cbe4de58
commit 97c6850005

View file

@ -91,7 +91,7 @@ class ClassRegistry {
* stored in the registry and returned. * stored in the registry and returned.
* @param bool $strict if set to true it will return false if the class was not found instead * @param bool $strict if set to true it will return false if the class was not found instead
* of trying to create an AppModel * of trying to create an AppModel
* @return object instance of ClassName. * @return $class instance of ClassName.
* @throws CakeException when you try to construct an interface or abstract class. * @throws CakeException when you try to construct an interface or abstract class.
*/ */
public static function init($class, $strict = false) { public static function init($class, $strict = false) {