Skip to content

Exception "Some required arguments are not valid" thrown when output of a function is translated #3

@mjrider

Description

@mjrider

adding to tests/assets/code.php will trigger this case:

__(ucfirst('test'));

While it seems logical that the scanner can't index this line, a warning/notice is a lot better.
Because this exception is not catched internally, it's impossible to ignore it and continue the rest of the file, we add the translations like this manually to the translation file. This works in the previous version of php-gettext

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions