Skip to content

@phpstan-assert does not materialize static(Xxx) #12376

@mvorisek

Description

@mvorisek

Bug report

static(Xxx) should be materialized when Xxx is known/constant class.

Code snippet that reproduces the problem

https://phpstan.org/r/c2145f2d-aeb5-4ad6-b09d-b8d168566313

Expected output

l46 should be A instead of static(A)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions