Skip to content

Commit

Permalink
Fix htmlentities PHP warning (#1291)
Browse files Browse the repository at this point in the history
* Fix htmlentities PHP warning

* Update QueryFormatter.php

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
  • Loading branch information
jakubdibala and barryvdh authored Feb 24, 2022
1 parent b96f982 commit 29d7d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataFormatter/QueryFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function checkBindings($bindings)
public function escapeBindings($bindings)
{
foreach ($bindings as &$binding) {
$binding = htmlentities($binding, ENT_QUOTES, 'UTF-8', false);
$binding = htmlentities((string) $binding, ENT_QUOTES, 'UTF-8', false);
}

return $bindings;
Expand Down

0 comments on commit 29d7d90

Please sign in to comment.