Skip to content

Commit

Permalink
Fixed syntax error, unexpected 't' (T_STRING), expecting ']'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Jan 26, 2020
1 parent 91ec13a commit bd6b615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function value($value, int $pad = 1)
return $value;
}

return "'{$value}'";
return "'" . addslashes($value) . "'";
}

protected function key($key, int $size = 0)
Expand Down

0 comments on commit bd6b615

Please sign in to comment.