From b1420cee0b5b3f04a83c3800f8bc2e0d7d6e39df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Dvo=C5=99=C3=A1k?= Date: Tue, 17 Apr 2018 09:51:21 +0200 Subject: [PATCH] Fluent: Remove return type for fetch method (#280) --- src/Dibi/Fluent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Dibi/Fluent.php b/src/Dibi/Fluent.php index 44c08bfe..e6ac84f2 100644 --- a/src/Dibi/Fluent.php +++ b/src/Dibi/Fluent.php @@ -302,8 +302,9 @@ class Fluent implements IDataSource /** * Generates, executes SQL query and fetches the single row. + * @return Row|array|null */ - public function fetch(): ?Row + public function fetch() { if ($this->command === 'SELECT' && !$this->clauses['LIMIT']) { return $this->query($this->_export(null, ['%lmt', 1]))->fetch();