[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes

WordPress Trac noreply at wordpress.org
Sun Sep 13 02:47:35 UTC 2020


#50913: PHP 8.0: various compatibility fixes
-------------------------------------------+-------------------------------
 Reporter:  jrf                            |       Owner:  SergeyBiryukov
     Type:  task (blessed)                 |      Status:  reviewing
 Priority:  normal                         |   Milestone:  5.6
Component:  General                        |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  php8 has-patch needs-dev-note  |     Focuses:  coding-standards
-------------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48973" 48973]:
 {{{
 #!CommitTicketReference repository="" revision="48973"
 Tests: Require PHP less than 8.0 for some `wpdb` tests.

 These tests ensure that `wpdb::prepare()` throws a `_doing_it_wrong()`
 notice when called with an incorrect number of arguments, or with
 arguments of a wrong type.

 PHP 8 introduces similar error messages natively, making these tests
 redundant on PHP 8.0 or later.

 Follow-up to [41470], [41662].

 See #50913.
 }}}

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


More information about the wp-trac mailing list