Skip to content

Method expects Template of object, Template of object|Template of object given. #6210

@biozshock

Description

@biozshock

Bug report

I'm not even sure how to explain, sorry.
Probably it infers something from method_exists and does not print it out?

Code snippet that reproduces the problem

https://phpstan.org/r/62cf8f07-ea60-4d5e-842a-41bd454c0a84

Expected output

No errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions