Skip to content

Commit

Permalink
Let IDE work better with ClassRegistry::init()
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
tgskiv committed Jan 27, 2015
1 parent b5cbe4d commit 97c6850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/ClassRegistry.php
Expand Up @@ -91,7 +91,7 @@ public static function getInstance() {
* stored in the registry and returned.
* @param bool $strict if set to true it will return false if the class was not found instead
* 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.
*/
public static function init($class, $strict = false) {
Expand Down

0 comments on commit 97c6850

Please sign in to comment.