Skip to content

Immutable class by phpdoc can be modified by e.g. sort #12676

@janedbal

Description

@janedbal

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/985ae334-dabf-4d51-82a6-50e9ba7662f1

Expected output

@readonly property A::$a is already assigned. on line 16

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

No response

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