From 26a77e4dd8f5552bceed610ae3459d6cbe857e78 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Sat, 31 Jul 2021 01:29:55 -0300 Subject: [PATCH] fix foreach pre actions --- system/system.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/system.php b/system/system.php index 3b02e36..2340e13 100644 --- a/system/system.php +++ b/system/system.php @@ -222,8 +222,9 @@ class startEngineExacTI { return $constant; } + /** @return array */ public function controllerPreActions() { - return (isset($this->preActions) && is_array($this->preActions)) ? $this->preActions : false; + return (isset($this->preActions) && is_array($this->preActions)) ? $this->preActions : []; } } @@ -238,6 +239,9 @@ $engine = new startEngineExacTI(); $engine->registry->set('engine', $engine); // Loader +/** + * @var Loader + */ $loader = new Loader($engine->registry); $engine->registry->set('load', $loader);