1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 09:53:11 +01:00

Fluent: Remove return type for fetch method (#280)

This commit is contained in:
Jan Dvořák 2018-04-17 09:51:21 +02:00 committed by David Grudl
parent 3050aebb48
commit b1420cee0b

View File

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