From 7114153b151f8dc861a7f89e1cabbc151843db49 Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 24 Sep 2018 03:30:30 +0200 Subject: [PATCH] Fix doc block. --- src/View/ViewBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/ViewBuilder.php b/src/View/ViewBuilder.php index 0b8d9b9f280..e1a6a301d8c 100644 --- a/src/View/ViewBuilder.php +++ b/src/View/ViewBuilder.php @@ -212,11 +212,11 @@ public function enableAutoLayout($enable = true) * Returns if CakePHP's conventional mode of applying layout files is enabled. * Disabled means that layouts will not be automatically applied to rendered views. * - * @return bool + * @return bool|null */ public function isAutoLayoutEnabled() { - return $this->_autoLayout !== null ? $this->_autoLayout : true; + return $this->_autoLayout; } /**