From f1fd93708e8c1c0d2564f11bceec98439e1ac429 Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Fri, 14 Oct 2022 16:57:04 +0200 Subject: [PATCH] :white_check_mark: fix usage of method_exist for phpspec --- src/Gaufrette/Adapter/DoctrineDbal.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gaufrette/Adapter/DoctrineDbal.php b/src/Gaufrette/Adapter/DoctrineDbal.php index 1d725e3f..ea574964 100644 --- a/src/Gaufrette/Adapter/DoctrineDbal.php +++ b/src/Gaufrette/Adapter/DoctrineDbal.php @@ -89,7 +89,7 @@ public function checksum($key) public function exists($key) { $method = 'fetchOne'; // dbal 3.x - if (!method_exists($this->connection, $method)) { + if (!method_exists(Connection::class, $method)) { $method = 'fetchColumn'; // dbal 2.x } @@ -159,7 +159,7 @@ public function isDirectory($key) private function getColumnValue($key, $column) { $method = 'fetchOne'; // dbal 3.x - if (!method_exists($this->connection, $method)) { + if (!method_exists(Connection::class, $method)) { $method = 'fetchColumn'; // dbal 2.x } @@ -184,7 +184,7 @@ public function listKeys($prefix = '') $prefix = trim($prefix); $method = 'fetchAllAssociative'; // dbal 3.x - if (!method_exists($this->connection, 'fetchAllAssociative')) { + if (!method_exists(Connection::class, 'fetchAllAssociative')) { $method = 'fetchAll'; // dbal 2.x }