1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

fix(entries): fix return type for fetch() method.

This commit is contained in:
Awilum
2020-08-21 21:55:36 +03:00
parent 2db2e2f38c
commit cf3d42d5a7

View File

@@ -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);