Skip to content

Parser Failing on Multi-Line Code #14

@BusterNeece

Description

@BusterNeece

In the process of trying to upgrade from php-gettext version 4.x to 5.x in my code, and the following example code:

<?php
$var = __(
  'Test string. This is a very long string, so I want to wrap it across '
  . 'multiple lines.'
);

Yields the error:

Invalid gettext function in (file). Some required arguments are not valid

I believe this is because the parser isn't correctly handling the multiline string inside the function call.

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