[wp-trac] [WordPress Trac] #59653: PHPStan: Fix function argument type issues for WP 6.5

WordPress Trac noreply at wordpress.org
Tue Oct 17 12:31:23 UTC 2023


#59653: PHPStan: Fix function argument type issues for WP 6.5
----------------------------+--------------------
 Reporter:  hellofromTonya  |      Owner:  (none)
     Type:  task (blessed)  |     Status:  new
 Priority:  normal          |  Milestone:  6.5
Component:  General         |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+--------------------
 Previously:

 * #58852 (6.4)
 * #57782 (6.3)
 * #51423 (<= 6.2)

 Continuation of the the work to fix function argument type issues as
 reported by PHPStan. These issues are argument types passed to a WP Core
 and PHP's built-in functions.

 The last report was created 3 years ago
 https://gist.github.com/xknown/77f8cbe233da75080d1e9258a8c94f95. A new
 report should be generated as a starting point what issues remain to be
 fixed in 6.3.

 Goals are to:
 * retain the current behavior (i.e. to avoid breaking changes).
 * retain the triggering of notice/warning/error, which are clues and
 indicators (i.e. rather than silently letting the problem propagate
 downstream).
 * gain PHP 8 compatibility.
 * ensure code coverage to validate changes.

 This ticket is part of the effort to achieve PHP 8+ compatibility.

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


More information about the wp-trac mailing list