[wp-trac] [WordPress Trac] #56034: PHP 8.2: proposal for handling unknown dynamic properties deprecations

WordPress Trac noreply at wordpress.org
Tue Aug 23 17:54:55 UTC 2022


#56034: PHP 8.2: proposal for handling unknown dynamic properties deprecations
-------------------------------+-----------------------------
 Reporter:  jrf                |       Owner:  hellofromTonya
     Type:  task (blessed)     |      Status:  accepted
 Priority:  normal             |   Milestone:  6.2
Component:  General            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  php82 needs-patch  |     Focuses:
-------------------------------+-----------------------------
Changes (by jrf):

 * keywords:  php82 has-patch => php82 needs-patch


Comment:

 I have opened [https://github.com/WordPress/wordpress-develop/pull/3123
 GitHub PR #3123] with a patch to add the `#[AllowDynamicProperties]`
 attributes in all the right places.

 With this patch (and the [https://github.com/WordPress/wordpress-
 develop/pulls?q=is%3Apr+php+8.2+is%3Aopen other open PHP 8.2 patches]) in
 place, there are only four tests still visibly failing on PHP 8.2 issues.
 Those tests are all related to the test fixture `Basic_Object` in
 `tests/phpunit/includes/class-basic-object.php` and I intend to pull a
 separate patch to fix up the magic methods in that test fixture.

 ''Note, there may be some more failing tests being hidden by PHP 8.1 test
 failures, but it won't be much anymore.''

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


More information about the wp-trac mailing list