php-gettext / Gettext

PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
MIT License
688 stars 134 forks source link

Handle PHP 8 `T_NAME_FULLY_QUALIFIED` to fix issue #284 #288

Closed remcotolsma closed 1 year ago

remcotolsma commented 1 year ago

Since PHP 8 function calls like \__( 'Test', 'text-domain' ) are identified as T_NAME_FULLY_QUALIFIED instead of T_STRING. This will add PHP 8 support for fully qualified function calls like \__( 'Test', 'text-domain' ). See following issues for more details:

oscarotero commented 1 year ago

Looks fine. Thanks!