I have a composer package installed for adding BEM naming to my menu classes etc.
- https://packagist.org/packages/craigpearson/bem-walker-nav-menu
- https://github.com/craigpearson/bem-walker-nav-menu
I’ve had this installed for about 1.5 years without issue/error. With no recent changes I am suddenly getting the following on a composer install
:
Fatal error: Class 'Walker_Nav_Menu' not found in /Users/jordancharters/code/devtesting/devtesting.com/testing/site/web/app/themes/mytheme/vendor/craigpearson/bem-walker-nav-menu/walker.php on line 5
The following is in the walker.php file of the composer file.
<?php
namespace CP\BEM;
class navWalker extends \Walker_Nav_Menu
As we have \
it should be using the class as declared in the WP core. I tried with App\Walker_Nav_Menu
too, no luck.