Skip to content

Functions in the same namespace as a trait are not recognized in another namespace #7952

@szepeviktor

Description

@szepeviktor

Bug report

When a function is in the same namespace as a trait it is not recognized in another namespace.

Code snippet that reproduces the problem

https://phpstan.org/r/c494b722-ab27-415e-bffe-92f1beb015a9

Expected output

No error.

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