Cannot indirectly modify readonly

no-email (Damien Seguy), Damien Seguy
Mon, 14 Apr 2025 00:00:00 +0000

The same error message 'Cannot indirectly modify readonly property X::$property' is used when trying to sneak a reference on a readonly property, and updated it later.
Strangely, this is also the same error message when the readonly property is initially assigned a reference, for later sneaky update.
The error is the same, indeed, yet may be these messages may be distinct.