From e825823e9adb078569d889fb82a24bfdd6d24259 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Mon, 22 Oct 2018 10:02:51 +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 4428e119f..cd9049628 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 bool|$class instance of ClassName. + * @return bool|object $class instance of ClassName. * @throws CakeException when you try to construct an interface or abstract class. */ public static function init($class, $strict = false) { From 527b9fe640f656aefc3a148e3206ee9b98576773 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Mon, 22 Oct 2018 10:11:01 +0200 Subject: [PATCH 2/2] Improve documentation --- lib/Cake/View/View.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 91776ad9a..47e9530f2 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -120,9 +120,9 @@ class View extends CakeObject { public $view = null; /** - * Name of layout to use with this View. + * Name of layout to use with this View. If `false` then no layout is rendered. * - * @var string + * @var string|bool */ public $layout = 'default';