Skip to content

Extend ObjectType #282

@staabm

Description

@staabm

That's not very useful - it'd work only inside function bodies and not across the boundaries when passing object around.

But with this limitation in mind it's possible, you need to extend ObjectType and carry the additional information. phpstan-doctrine does this.

Originally posted by @ondrejmirtes in phpstan/phpstan#6634 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions