mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
b5cbe4de58
commit
97c6850005
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class ClassRegistry {
|
|||
* 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) {
|
||||
|
|
Loading…
Reference in a new issue