[RSS Feed/News] xf-dev:entity-class-properties generates phpdocs which indicate readonly properties are writeable

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #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.

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom