wapmorgan/PhpDeprecationDetector

FP: mb_ereg_replace

voku opened this issue · 2 comments

voku commented

Hi, I see errors like this:

| /thirdparty/composer/voku/portable-utf8/src/voku/helper/UTF8.php:5804                              | removed   | Function mb_ereg_replace() is removed.                                           |
|                                                                                                    |           | Consider replace with @mb_ereg_replace_e_modifier()                              |
|

... but mb_ereg_replace is not removed and mb_ereg_replace_e_modifier does not exist. I think you will check the "e" modifier usage somehow here, but the error message seems not correct here.

Agreed, information is not full.
Unfortunately, I don't have time to work on opensource, so let issue be open

Hi, I see errors like this:

| /thirdparty/composer/voku/portable-utf8/src/voku/helper/UTF8.php:5804                              | removed   | Function mb_ereg_replace() is removed.                                           |
|                                                                                                    |           | Consider replace with @mb_ereg_replace_e_modifier()                              |
|

... but mb_ereg_replace is not removed and mb_ereg_replace_e_modifier does not exist. I think you will check the "e" modifier usage somehow here, but the error message seems not correct here.

If you can throw some proof of concept code in here that will trip this error, I'll see what I can do about putting a PR together that will fix it.