[wp-trac] [WordPress Trac] #51423: Fix function argument type issues reported by PHPStan

WordPress Trac noreply at wordpress.org
Tue Apr 20 12:47:33 UTC 2021


#51423: Fix function argument type issues reported by PHPStan
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:
                                                 |  hellofromTonya
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.8
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php8 has-patch has-unit-tests        |     Focuses:  coding-
  commit                                         |  standards
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 [https://github.com/WordPress/wordpress-develop/pull/722 PR 722] is ready
 for commit. cc @SergeyBiryukov

 File: wp-admin/setup-config.php

 - Fixes a `fwrite` handle type mismatch which happens if `fopen` fails,
 i.e. returns `false`
 - Adds error messaging for it

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


More information about the wp-trac mailing list