Skip to content

Commit

Permalink
Using getPdo() instead $pdo
Browse files Browse the repository at this point in the history
* fix: getPdo() instead $pdo
  • Loading branch information
qem19 authored and pvsaintpe committed Jan 9, 2020
1 parent 5f729da commit 4400fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PostgresConnection.php
Expand Up @@ -62,7 +62,7 @@ public function getDoctrineConnection(): Connection

public function bindValues($statement, $bindings)
{
if ($this->pdo->getAttribute(PDO::ATTR_EMULATE_PREPARES)) {
if ($this->getPdo()->getAttribute(PDO::ATTR_EMULATE_PREPARES)) {
foreach ($bindings as $key => $value) {
$parameter = is_string($key) ? $key : $key + 1;

Expand All @@ -88,7 +88,7 @@ public function bindValues($statement, $bindings)

public function prepareBindings(array $bindings)
{
if ($this->pdo->getAttribute(PDO::ATTR_EMULATE_PREPARES)) {
if ($this->getPdo()->getAttribute(PDO::ATTR_EMULATE_PREPARES)) {
$grammar = $this->getQueryGrammar();

foreach ($bindings as $key => $value) {
Expand Down

0 comments on commit 4400fcb

Please sign in to comment.