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

WordPress Trac noreply at wordpress.org
Sun Sep 20 00:55:22 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:"49007" 49007]:
 {{{
 #!CommitTicketReference repository="" revision="49007"
 Tests: Fix the failures in REST API `format` keyword validation tests on
 PHP 8.

 The tests ensure that `rest_sanitize_value_from_schema()` and
 `rest_validate_value_from_schema()` throw an "undefined offset" notice
 when the required `type` schema keyword is not passed.

 In PHP 8, that notice is now a warning, so the tests need to be adjusted
 accordingly.

 Follow-up to [48300], [48993].

 See #50913.
 }}}

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


More information about the wp-trac mailing list