From 4ebdd50f1fad354973b7c0225e21f48dacd68de3 Mon Sep 17 00:00:00 2001
From: Diego Najar <dignajar@gmail.com>
Date: Tue, 14 Sep 2021 17:38:19 +0200
Subject: [PATCH] compatibility with php7

---
 bl-kernel/page.class.php  | 4 ++--
 bl-kernel/pages.class.php | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php
index 6c6d3f23..437ffdde 100644
--- a/bl-kernel/page.class.php
+++ b/bl-kernel/page.class.php
@@ -38,7 +38,7 @@ class Page {
      * @param string $field
      * @return bool|string|int|array
      */
-    public function getValue(string $field): bool|string|int|array
+    public function getValue(string $field)
     {
         if (isset($this->vars[$field])) {
             return $this->vars[$field];
@@ -266,7 +266,7 @@ class Page {
      *
      * @return boolean|string
      */
-    public function template(): bool|string
+    public function template()
     {
         $template = $this->getValue('template');
         if (empty($template)) {
diff --git a/bl-kernel/pages.class.php b/bl-kernel/pages.class.php
index 9d1159d1..81aebb20 100644
--- a/bl-kernel/pages.class.php
+++ b/bl-kernel/pages.class.php
@@ -64,7 +64,7 @@ class Pages extends dbJSON {
      * @param array $args       The array $args supports all the keys from the variable $dbFields. If you don't pass all the keys, the default values are used.
      * @return boolean|string   Returns the page key if the page is successfully created, FALSE otherwise
      */
-    public function add(array $args): bool|string
+    public function add(array $args)
     {
         $row = array();
 
@@ -183,7 +183,7 @@ class Pages extends dbJSON {
      * @param array $args       The array $args supports all the keys from the variable $dbFields. If you don't pass all the keys, the default values are used.
      * @return boolean|string   Returns the page key if the page is successfully edited, FALSE otherwise
      */
-    public function edit(array $args): bool|string
+    public function edit(array $args)
     {
         // This is the new row for the table and is going to replace the old row
         $row = array();
@@ -565,7 +565,7 @@ class Pages extends dbJSON {
      * @param boolean $scheduled
      * @return boolean|array            Returns an array with the pages' keys or FALSE if it out of range
      */
-    public function getList(int $pageNumber, int $numberOfItems, bool $published=true, bool $static=false, bool $sticky=false, bool $draft=false, bool $scheduled=false): bool|array
+    public function getList(int $pageNumber, int $numberOfItems, bool $published=true, bool $static=false, bool $sticky=false, bool $draft=false, bool $scheduled=false)
     {
         $list = array();
         foreach ($this->db as $key=>$fields) {