[wp-trac] [WordPress Trac] #53218: Make apply_filters() variadic

WordPress Trac noreply at wordpress.org
Thu Mar 10 09:43:54 UTC 2022


#53218: Make apply_filters() variadic
------------------------------------------+---------------------
 Reporter:  johnbillion                   |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  6.0
Component:  Plugins                       |     Version:  5.3
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch early dev-feedback  |     Focuses:
------------------------------------------+---------------------

Comment (by dingo_d):

 This would be a great addition, especially from the perspective of static
 analysis tools like PHPStan.

 Currently, you get tons of false positives when passing more than two
 arguments, and you need to ignore the rule altogether, which diminishes
 the use of the tool.

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


More information about the wp-trac mailing list