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 1112607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,9 @@ public function toQueryString()
$length = strlen($this->statement);

for ($i=0; $i < $length; $i++) {
$char = $this->statement{$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 1112607

Please sign in to comment.