[wp-trac] [WordPress Trac] #24587: Walker_Page and Walker_Nav_Menu not compatible

WordPress Trac noreply at wordpress.org
Thu Jun 4 05:43:48 UTC 2020


#24587: Walker_Page and Walker_Nav_Menu not compatible
------------------------------------------------+--------------------------
 Reporter:  geardev                             |       Owner:
                                                |  peterwilsoncc
     Type:  defect (bug)                        |      Status:  closed
 Priority:  normal                              |   Milestone:
Component:  Menus                               |     Version:  3.0
 Severity:  normal                              |  Resolution:  wontfix
 Keywords:  needs-patch needs-unit-tests close  |     Focuses:
------------------------------------------------+--------------------------

Comment (by szepe.viktor):

 This issue comes up in static analysis.

 I help it by using these value objects

 - https://github.com/szepeviktor/phpstan-wordpress/blob/master/example
 /class-wp-nav-menu-args.php
 - https://github.com/szepeviktor/phpstan-wordpress/blob/master/example
 /class-wp-nav-menu-item.php

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


More information about the wp-trac mailing list