[wp-trac] [WordPress Trac] #56009: Prepare for PHP 8.2

WordPress Trac noreply at wordpress.org
Wed Jun 22 04:25:43 UTC 2022

#56009: Prepare for PHP 8.2
 Reporter:  jrf             |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  6.1
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  php82           |     Focuses:

Comment (by jrf):

 Replying to [comment:1 knutsp]:
 > > Deprecate dynamic properties
 > Is adding
 > {{{#!php
 > #[AllowDynamicProperties]
 > }}}
 > to all/most/some classes for 6.1, then remove it for classes that, after
 further considerations, should not be extended like this, in 6.2 and 6.3,
 a way to go?
 > It sees to me at least `WP_Post`, `WP_Term` and `WP_User` will need
 dynamic properties.

 There is a large list of classes which need handling. I have now opened
 ticket #56034 with an extensive proposal on how to handle this for the
 whole of WP Core.

 Additionally, I have opened ticket #56033 to fix the "known" dynamic
 property issues.

 @knutsp I'd appreciate it if you would have a read through of both issues
 and value your opinion on them (in particular on issue #56034).

Ticket URL: <https://core.trac.wordpress.org/ticket/56009#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list