Skip to content

Commit

Permalink
Rename property.
Browse files Browse the repository at this point in the history
The TypeConverterTrait uses `_driver` and not `driver`.
  • Loading branch information
markstory committed May 27, 2018
1 parent a53de2a commit 98f5419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Database/Statement/BufferedStatement.php
Expand Up @@ -47,7 +47,7 @@ class BufferedStatement implements Iterator, StatementInterface
*
* @var \Cake\Database\DriverInterface
*/
protected $driver;
protected $_driver;

/**
* The in-memory cache containing results from previous iterators
Expand Down Expand Up @@ -79,7 +79,7 @@ class BufferedStatement implements Iterator, StatementInterface
public function __construct($statement, $driver)
{
$this->statement = $statement;
$this->driver = $driver;
$this->_driver = $driver;
}

/**
Expand Down Expand Up @@ -206,7 +206,7 @@ public function lastInsertId($table = null, $column = null)
return $row[$column];
}

return $this->driver->lastInsertId($table, $column);
return $this->_driver->lastInsertId($table, $column);
}

/**
Expand Down

0 comments on commit 98f5419

Please sign in to comment.