From 99af28c80a08e8fd405bf0baccee08fc0f2f18b7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 6 Mar 2020 14:03:44 +0100 Subject: [PATCH] Fix wrong arg order which is deprecated in PHP 7.4 --- src/Persister/PdoPersister.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Persister/PdoPersister.php b/src/Persister/PdoPersister.php index f51395f..5d077bd 100644 --- a/src/Persister/PdoPersister.php +++ b/src/Persister/PdoPersister.php @@ -157,7 +157,7 @@ public function find($class, $id) private function implodeFieldsNames($fields) { $fields_names = array_keys($fields); - return "`" . implode($fields_names, "`, `") . "`"; + return "`" . implode("`, `", $fields_names) . "`"; } public function getExpectedSqlQuery($sql, $fields)