Skip to content

fatal error while scanning a php file #1

@mjrider

Description

@mjrider

I'm getting the following error:

PHP Fatal error:  Uncaught Error: Call to undefined method PhpParser\Node\Expr\Variable::getLast() in .../vendor/gettext/php-scanner/src/PhpNodeVisitor.php:31

the line of code triggering the error is:

    $phpScanner->scanFile($file->getRelativePathname());

the contents of the file which would still trigger the error

<?php

class AuthMiddleware
{
    public function test()
    {
       return __('Accessing the Backoffice is not allowed at this time.');
    }
}

Versions:

gettext/gettext                     v5.0.0             PHP gettext manager
gettext/languages                   2.5.0              gettext languages with plural rules
gettext/php-scanner                 v1.0.0             PHP scanner for 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