From 8e8fbae78c1e65531813e90470c8884403404df5 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Fri, 19 Oct 2018 16:45:21 +0200 Subject: [PATCH 1/2] Improve documentation --- lib/Cake/Utility/ClassRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/ClassRegistry.php b/lib/Cake/Utility/ClassRegistry.php index 6234bcf55..f8035f722 100644 --- a/lib/Cake/Utility/ClassRegistry.php +++ b/lib/Cake/Utility/ClassRegistry.php @@ -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 $class instance of ClassName. + * @return boolean|$class instance of ClassName. * @throws CakeException when you try to construct an interface or abstract class. */ public static function init($class, $strict = false) { From b97530977de8db8d91c15e041e6011d5d53af6fe Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Fri, 19 Oct 2018 16:54:05 +0200 Subject: [PATCH 2/2] Improve documentation --- lib/Cake/Utility/ClassRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/ClassRegistry.php b/lib/Cake/Utility/ClassRegistry.php index f8035f722..4428e119f 100644 --- a/lib/Cake/Utility/ClassRegistry.php +++ b/lib/Cake/Utility/ClassRegistry.php @@ -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 boolean|$class instance of ClassName. + * @return bool|$class instance of ClassName. * @throws CakeException when you try to construct an interface or abstract class. */ public static function init($class, $strict = false) {