Skip to content

Commit

Permalink
Fix undefined class constant issue (#327)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Milenin <[email protected]>
  • Loading branch information
azurre and azurre authored Jan 27, 2022
1 parent 787c8fa commit 1985e0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Queries/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class Base implements IteratorAggregate
protected $message = '';

/** @var int */
protected $currentFetchMode = PDO::FETCH_DEFAULT;
protected $currentFetchMode;

/**
* BaseQuery constructor.
Expand All @@ -50,6 +50,7 @@ abstract class Base implements IteratorAggregate
*/
protected function __construct(Query $fluent, $clauses)
{
$this->currentFetchMode = defined('PDO::FETCH_DEFAULT') ? PDO::FETCH_DEFAULT : PDO::FETCH_BOTH;
$this->fluent = $fluent;
$this->clauses = $clauses;
$this->result = null;
Expand Down

0 comments on commit 1985e0e

Please sign in to comment.