- Issue created by @.nickiv
As of Drupal 11.2, the \Drupal\Core\Menu\MenuActiveTrail service has changed its constructor signature. It now includes a required $pathMatcher parameter (formerly optional), which breaks the current ContextMenuActiveTrail override in the Context module.
Update the ContextServiceProvider::alter() method to fully redefine the constructor arguments for the menu.active_trail service in the correct order, including both the context.manager and the new path.matcher dependency as expected by Core. And update the constructor of ContextMenuActiveTrail.
Apply the fix
Test on Drupal 11.2+
Merge and tag a release
Active
5.0
Code