Skip to content

Twig v1.26.0 breaks auth_user() #283

@pinodex

Description

@pinodex

I recently updated from Twig v1.24.2 to Twig v1.26.0. Now, everytime I made a call to auth_user() in my Twig template, I am getting

An exception has been thrown during the compilation of a template ("Method Illuminate\Auth\AuthManager::user() does not exist")

Method Illuminate\Auth\AuthManager::user() does not exist (Twig/Node/Expression/Call.php line 262)

Digging, v1.26.0 introduced a reflectCallable method which does not exist in v1.24.2.

I tried calling new ReflectionMethod($callable[0], $callable[1]); alone and it produces the same error. However, call_user_func_array($callable); works.

I don't know where to submit this issue. Any suggestions on resolving this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions