mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
Fluent: Remove return type for fetch method (#280)
This commit is contained in:
@@ -302,8 +302,9 @@ class Fluent implements IDataSource
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates, executes SQL query and fetches the single row.
|
* 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']) {
|
if ($this->command === 'SELECT' && !$this->clauses['LIMIT']) {
|
||||||
return $this->query($this->_export(null, ['%lmt', 1]))->fetch();
|
return $this->query($this->_export(null, ['%lmt', 1]))->fetch();
|
||||||
|
Reference in New Issue
Block a user