[wp-trac] [WordPress Trac] #53635: PHP 8.1: various compatibility fixes

WordPress Trac noreply at wordpress.org
Tue Aug 3 12:03:55 UTC 2021


#53635: PHP 8.1: various compatibility fixes
----------------------------+-------------------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  5.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  php81           |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"51533" 51533]:
 {{{
 #!CommitTicketReference repository="" revision="51533"
 Code Modernization: Pass correct default value to `new DateTime()` in
 `wp_default_packages_inline_scripts()`.

 This fixes a "Deprecated: `DateTime::__construct()`: Passing null to
 parameter #1 (`$datetime`) of type string is deprecated" warning on PHP
 8.1.

 Follow-up to [49083].

 See #53635.
 }}}

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


More information about the wp-trac mailing list