[wp-trac] [WordPress Trac] #60355: Can't save object to metadata with `readonly` properties

WordPress Trac noreply at wordpress.org
Fri Jan 26 21:04:36 UTC 2024


#60355: Can't save object to metadata  with `readonly` properties
-------------------------+---------------------
 Reporter:  Cawa-93      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.5
Component:  General      |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  needs-docs   |     Focuses:
-------------------------+---------------------

Comment (by abditsori):

 I think this issue is caused by PHP 8.1's readonly class properties.
 (https://php.watch/versions/8.1/readonly)

 It is pretty straight forward to fix it as in the patch I attached.

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


More information about the wp-trac mailing list