Change wrong error message

parent 0db6734c
......@@ -154,7 +154,7 @@ abstract class TyposClientInterface
// Check for already fixed typo
preg_match_all("#{$corrected}#", $text, $typos, PREG_OFFSET_CAPTURE);
if (isset($typos[0])) {
if (isset($typos[0][1])) {
throw new \Exception("Already fixed", 208);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment