danielstjules / Stringy

A PHP string manipulation library with multibyte support
MIT License
2.46k stars 216 forks source link

Stringy.php : typo in class name #142

Closed ChristopheBrun closed 7 years ago

ChristopheBrun commented 8 years ago

In src/Stringy.php, l.1862 :

throw new \**RuntimeExpception**('Stringy method requires the ' . 'mbstring module for encodings other than ASCII and UTF-8');

Fix : throw new \RuntimeException(...)

ChristopheBrun commented 8 years ago

Also, it could be interesting to add in the error message the encoding actually used. Something like : throw new \**RuntimeException**('Stringy method requires the ' . 'mbstring module for encodings other than ASCII and UTF-8. Encoding used : ' / $this->encoding);

danielstjules commented 7 years ago

Thanks!