Skip to content

Commit

Permalink
Merge pull request #10 from Seldaek/patch-2
Browse files Browse the repository at this point in the history
Fix wrong arg order which is deprecated in PHP 7.4
  • Loading branch information
joostfaassen authored Mar 6, 2020
2 parents 6a0a27d + 99af28c commit 5573714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Persister/PdoPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5573714

Please sign in to comment.