TypeError: Argument 1 passed to Drupal\like_and_dislike\LikeDislikePermissions::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /var/www/drupalvm/html/modules/contrib/like_and_dislike/src/LikeDislikePermissions.php on line 64 in Drupal\like_and_dislike\LikeDislikePermissions->__construct()

LikeDislikePermissions::__construct passes in $entity_type_manager and type hints at EntityTypeManager. Changing this to EntityTypeManagerInterface fixes.

Comments

pau1_m created an issue. See original summary.

pau1_m’s picture

Status: Active » Closed (outdated)

Just started doing a patch, then realised this is already fixed in dev.