Open orklah opened 4 years ago
Hm, perhaps we should introduce a rule similar to Php Code Fixer's 'mb_str_functions': like here - https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/src/Fixer/Alias/MbStrFunctionsFixer.php, or it makes sense to target substring/strpos finctions only?
Yeah, it would be cool to help migrate everything :)
Description (screenshot):
Hi,
We already match non-optimal patterns with substr. Here is a new one:
Furthermore, I saw this pattern at work today:
The risk here is to count with different library and to end up with weird strings in the end: https://3v4l.org/salLv
Thanks