Skip to content

Call to undefined method Doctrine\ORM\Query\Expr::myCustomMethod() #62

Closed
@esbobkov

Description

@esbobkov

I have custom Expr class extended from Doctrine\ORM\Query\Expr

I think, PHPStan doesn't know about that class and trigger error

In ExpressionBuilderDynamicReturnTypeExtension.php line 67:
                                                                                                         
  Attempted to call an undefined method named "myCustomMethod" of class "Doctrine\ORM\Query\Expr".

is it because Doctrine\ORM\Query\Expr harcoded in getClass() method?
How to fix that?

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