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

WordPress Trac noreply at wordpress.org
Fri Aug 27 21:58:27 UTC 2021


#53635: PHP 8.1: various compatibility fixes
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:
                                                 |  hellofromTonya
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.9
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php81 has-patch has-unit-tests       |     Focuses:  coding-
  commit                                         |  standards
-------------------------------------------------+-------------------------
Changes (by jrf):

 * Attachment "53635-08-null-to-non-nullable-in-testcode.patch" added.

 PHP 8.1 | Tests: fix bug in
 Tests_Admin_IncludesPlugin::test_get_plugin_files_folder()   The
 `Tests_Admin_IncludesPlugin::_create_plugin()` expects the first parameter
 to be a text string to be written to a plugin file using `fwrite()`.
 Passing null causes a `fwrite(): Passing null to parameter #2 ($data) of
 type string is deprecated` notice.  Ref:
 https://www.php.net/manual/en/function.fwrite

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


More information about the wp-trac mailing list