Problem/Motivation

I'm getting the following error with Search API Solr 3.3 and Drupal core 8.7.5 when drupal/webprofiler is installed:

TypeError: Argument 2 passed to Drupal\search_api_solr\Plugin\DataType\Deriver\SolrDocumentDeriver::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /app/web/modules/contrib/search_api_solr/src/Plugin/DataType/Deriver/SolrDocumentDeriver.php on line 44 in Drupal\search_api_solr\Plugin\DataType\Deriver\SolrDocumentDeriver->__construct() (line 56 of /app/web/modules/contrib/search_api_solr/src/Plugin/DataType/Deriver/SolrDocumentDeriver.php).

Proposed resolution

Use EntityTypeManagerInterface instead of EntityTypeManager as argument.

Comments

ericpugh created an issue. See original summary.

ericpugh’s picture