- Issue created by @useernamee
- @useernamee opened merge request.
- Status changed to Needs review
over 1 year ago 9:39am 5 May 2023
After installing webprofiler → module token_default is breaking our page.
TypeError: Drupal\token_default\TokenDefaultManager::__construct(): Argument #1 ($entityTypeManager) must be of type Drupal\Core\Entity\EntityTypeManager, Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\token_default\TokenDefaultManager->__construct() (Zeile 26 in /app/web/modules/contrib/token_default/src/TokenDefaultManager.php)
Webprofiler extends entityTypeManager and when TokenDefaultManager gets it in the constructor it is not the class it expects anymore. Interface should be used instead of exact class.
Needs review
1.0
Code