Skip to content

Commit

Permalink
Merge pull request #85 from Gladhon/patch-1
Browse files Browse the repository at this point in the history
' needs escaping
  • Loading branch information
adrianwaler authored Oct 4, 2019
2 parents 9047cf8 + eda99ec commit f4cab47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public function isApplicable(Type $type): bool

public function replace($value): string
{
return sprintf('\'%s\'', $value);
return sprintf('\'%s\'', preg_quote($value, '\''));
}
}

0 comments on commit f4cab47

Please sign in to comment.