Skip to content

const type inference #7969

@staabm

Description

@staabm

Feature request

I think phpstan should have a better idea regarding the type of the constant
https://phpstan.org/r/8c63c869-05c1-4446-9d95-4f017eca7b4c

maybe it should even consider it a literal string, similar to phpstan/phpstan-src#1692 because we are accing it using ::x ?

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