From cf3d42d5a71ea1f3c83c7e41a55e029a204d332f Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 21 Aug 2020 21:55:36 +0300 Subject: [PATCH] fix(entries): fix return type for fetch() method. --- src/flextype/app/Foundation/Entries/Entries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/app/Foundation/Entries/Entries.php b/src/flextype/app/Foundation/Entries/Entries.php index 0baaba97..55ea8265 100755 --- a/src/flextype/app/Foundation/Entries/Entries.php +++ b/src/flextype/app/Foundation/Entries/Entries.php @@ -92,11 +92,11 @@ class Entries * @param bool $collection Set `true` if collection of entries need to be fetched. * @param array $filter Select items in collection by given conditions. * - * @return array The entry array data. + * @return array|bool|int * * @access public */ - public function fetch(string $id, bool $collection = false, array $filter = []) : array + public function fetch(string $id, bool $collection = false, array $filter = []) { if ($collection) { return $this->fetchCollection($id, $filter);