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

WordPress Trac noreply at wordpress.org
Sun Sep 13 02:37:03 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:"48972" 48972]:
 {{{
 #!CommitTicketReference repository="" revision="48972"
 Tests: Replace the native PHPUnit `getMockForAbstractClass()` and
 `getMockBuilder()` methods.

 This avoids parse errors in PHPUnit internals due to `match` being a
 reserved keyword in PHP 8.

 To run on PHP 8, the tests relying on these methods require PHPUnit 9.3 or
 later.

 When the test suite is updated for compatibility with PHPUnit 9.x, these
 overrides can be removed.

 See #50913, #50902.
 }}}

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


More information about the wp-trac mailing list