Skip to content
Permalink
Browse files

replaced parent:: with static:: in runtime instances

  • Loading branch information...
T0mats0 committed Mar 31, 2018
1 parent 6ff3434 commit f524dcb11756d379579a8dc6a7f9944a05f5e18f
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Database/Statement/BufferedStatement.php
@@ -86,7 +86,7 @@ public function fetch($type = parent::FETCH_TYPE_NUM)
{
if ($this->_allFetched) {
$row = ($this->_counter < $this->_count) ? $this->_records[$this->_counter++] : false;
$row = ($row && $type === parent::FETCH_TYPE_NUM) ? array_values($row) : $row;
$row = ($row && $type === static::FETCH_TYPE_NUM) ? array_values($row) : $row;
return $row;
}
@@ -111,15 +111,15 @@ public function fetch($type = parent::FETCH_TYPE_NUM)
*/
public function fetchAssoc()
{
return $this->fetch(parent::FETCH_TYPE_ASSOC);
return $this->fetch(static::FETCH_TYPE_ASSOC);
}
/**
* {@inheritdoc}
*/
public function fetchObject()
{
return $this->fetch(parent::FETCH_TYPE_OBJ);
return $this->fetch(static::FETCH_TYPE_OBJ);
}
/**
@@ -149,7 +149,7 @@ public function rowCount()
{
if (!$this->_allFetched) {
$counter = $this->_counter;
while ($this->fetch(parent::FETCH_TYPE_ASSOC)) {
while ($this->fetch(static::FETCH_TYPE_ASSOC)) {
}
$this->_counter = $counter;
}

0 comments on commit f524dcb

Please sign in to comment.
You can’t perform that action at this time.