Closed dgwyer closed 1 year ago
This is in Gettext 4, right?
I'm not working on maintaining this version (not enough time) but accept PR. If you want to work on that, I guess this can be fixed somewhere here: https://github.com/php-gettext/Gettext/blob/4.x/src/Utils/PhpFunctionsScanner.php#L117
It might be good to know that this seems to work well on PHP 7.4, but it goes wrong in PHP 8:
Fixed and released in v4.8.8
I thought this issue was directly related to
wp-cli
and so I posted the original message there: https://github.com/wp-cli/i18n-command/issues/344Basically when prefixing a PHP i18n with a slash it gets ignored.
e.g.