Skip to content

"Type object cannot be called as a class" after reflection assertion #5257

@dbrekelmans

Description

@dbrekelmans

I'm using Reflection to assert that a method exists on an object.
Therefor it should be completely safe to call the method on this object dynamically.

https://psalm.dev/r/6e92bd1315

Expected result
No error

Actual result
ERROR: UndefinedClass - 26:20 - Type object cannot be called as a class

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