Fixed xf-dev:entity-class-properties generates phpdocs which indicate readonly properties are writeable


Well-known member
Affected version
2.2.8 Patch 1
Currently the type hint for a XF entity relationship/getter is @property TYPE $name. xf-dev:entity-class-properties should use @property-read TYPE $name when the property is readonly.

For relationships, an XF entity will reject updating a relationship property.
For getters, unless it overshadows an existing column, it will reject updating a getter property.
Top Bottom