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

WordPress Trac noreply at wordpress.org
Fri Sep 18 10:56:42 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:"48993" 48993]:
 #!CommitTicketReference repository="" revision="48993"
 Tests: Fix the failure in `test_get_weekday_undefined_index()` on PHP 8.

 The test ensures that `WP_Locale::get_weekday()` throws an "undefined
 offset" notice when called with an incorrect `$weekday_number` parameter.

 In PHP 8, that notice is now a warning, so the test needs to be adjusted

 See #50913.

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

More information about the wp-trac mailing list