Skip to content

Commit

Permalink
fix: dkd#79 Remove curly braces deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ines WALLON committed Apr 16, 2021
1 parent 245cfdf commit babcf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function toQueryString()
for ($i=0; $i < $length; $i++) {
$char = $this->statement{$i};
if ($char === '\'') {
if ($inString && $this->statement{max(0, $i-1)} === '\\') {
if ($inString && $this->statement[max(0, $i-1)] === '\\') {
$inString = true;
} else {
$inString = !$inString;
Expand Down

0 comments on commit babcf12

Please sign in to comment.