From c428cfe7ca586c5657a87539a29c53f85646dd28 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 24 Jul 2017 13:24:03 +0200 Subject: [PATCH] Adjust return value --- Views/ViewAbstract.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Views/ViewAbstract.php b/Views/ViewAbstract.php index ffba85390..9a6362266 100644 --- a/Views/ViewAbstract.php +++ b/Views/ViewAbstract.php @@ -186,7 +186,7 @@ abstract class ViewAbstract implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function addView(string $id, View $view, int $order = 0, bool $overwrite = true) /* : void */ + public function addView(string $id, View $view, int $order = 0, bool $overwrite = true) : bool { if ($overwrite || !isset($this->views[$id])) { $this->views[$id] = $view; @@ -194,7 +194,11 @@ abstract class ViewAbstract implements \Serializable if ($order !== 0) { uasort($this->views, ['\phpOMS\Views\View', 'viewSort']); } + + return true; } + + return false; } /**