Open
Description
We're currently introducing PHPStan's bleeding edge and I see that it started reporting errors like @readonly property cannot have a default value
on classes that extend MyCLabs\Enum\Enum
. It looks like @psalm-immutable
annotation is normalised by PHPStan into readonly
state, so cache
and instances
properties are considered as impure.
Is it possible to improve Enum
's phpDocs so PHPStan won't report this errors?
Thanks @mabar for pointing it out on Slack 🍻
Metadata
Metadata
Assignees
Labels
No labels