-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Brackets in function parameter #229
Comments
I recommend to update to gettext/gettext v5, that use nikic/PHP-Parser to scan php code and its much more reliable. |
Would you accept PRs against v4 to fix this? |
Yes, sure. |
NielsdeBlaauw
added a commit
to level-level/clarkson-wp-cli-twig-translations
that referenced
this issue
Nov 14, 2023
This fixes an issue where gettext can not correctly find plural strings. See php-gettext/Gettext#229
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use brackets in function parameter
PHPFunctionsScanner
will interpret this as a new function and the resulting parameter list is incorrect.Example:
and output:
as you can see "domain" is associated with
sprintf
function which is not true.The text was updated successfully, but these errors were encountered: