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

WordPress Trac noreply at wordpress.org
Sun Aug 8 08:46:49 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 ayeshrajans):

 Thanks a lot for the pointers @jrf. I uploaded a new patch with the points
 addressed.

 `wp_readonly` now has two `@since` tags:


 {{{
 * @since 4.9.0
 * @since 5.9.0 This function was renamed from `readonly`.
 }}}

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


More information about the wp-trac mailing list