Skip to content

PropertiesClassReflectionExtension is not called for classes that are UniversalObjectCratesClasses #8102

@mad-briller

Description

@mad-briller

Feature request

When registering a PropertiesClassReflectionExtension for a universalObjectCratesClasses, hasProperty is not called for the extension to have the opportunity to intervene and provide an explicit type.

My rough guess is that UniversalObjectCratesClassReflectionExtension returns true for hasProperty before the custom extension hasProperty is called, by virtue of the order that the extensions are registered into phpstans container.
I imagine this will require a fundamental rework of how the extensions are registered or read from the container, perhaps using a sort of priority or weight alluded to in this discussion?

Did PHPStan help you today? Did it make you happy in any way?

You already know the answer to this! ❤️

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