[wp-trac] [WordPress Trac] #53858: PHP 8.1: syntax error due to new 'readonly' property

WordPress Trac noreply at wordpress.org
Sun Aug 8 12:58:13 UTC 2021


#53858: PHP 8.1: syntax error due to new 'readonly' property
--------------------------------------------------+-----------------------
 Reporter:  haosun                                |       Owner:  jrf
     Type:  defect (bug)                          |      Status:  accepted
 Priority:  normal                                |   Milestone:  5.9
Component:  General                               |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  php81 needs-dev-note has-patch early  |     Focuses:
--------------------------------------------------+-----------------------

Comment (by SergeyBiryukov):

 Thanks for the updated patch!

 I think just `@since 5.9.0` would be enough for the new function,
 otherwise it gives an impression that `wp_readonly()` was already
 available in WordPress 4.9 with that exact name, which is not the case.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53858#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list