Skip to content
Snippets Groups Projects
Commit 4f70858d authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3501171: Fatal error on Drupal 10.4

parent fcffb66b
Branches 8.x-1.x
Tags 8.x-1.20
1 merge request!16Test D10
Pipeline #506811 passed with warnings
......@@ -51,3 +51,5 @@ include:
variables:
# SKIP_ESLINT: '1'
OPT_IN_TEST_NEXT_MINOR: 1
OPT_IN_TEST_NEXT_MAJOR: 1
OPT_IN_TEST_PREVIOUS_MAJOR: 1
......@@ -7,6 +7,7 @@ namespace Drupal\taxonomy_entity_index\Plugin\views\argument;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\taxonomy\Plugin\views\argument\IndexTidDepth;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\ViewExecutable;
......@@ -30,7 +31,8 @@ abstract class TaxonomyEntityIndexDepth extends IndexTidDepth {
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, protected Connection $database, protected EntityRepositoryInterface $entityRepository) {
public function __construct(array $configuration, $plugin_id, $plugin_definition, protected Connection $database, EntityRepositoryInterface|EntityStorageInterface $entityRepository) {
$this->entityRepository = $entityRepository;
parent::__construct($configuration, $plugin_id, $plugin_definition, $this->entityRepository);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment