- Issue created by @vipin.j
- Merge request !14* Bug fix for redundant `parent::__construct()` callback. → (Open) created by vipin.j
The changes committed from issue #3445991 🐛 Fatal errors in 10.3 due to parent constructor changes Fixed for the file src/Plugin/views/argument/TaxonomyEntityIndexDepth.php is causing installation failure with error
PHP Fatal error: Type of Drupal\taxonomy_entity_index\Plugin\views\argument\TaxonomyEntityIndexDepth::$entityRepository must be Drupal\Core\Entity\EntityRepositoryInterface (as in class Drupal\taxonomy\Plugin\views\argument\IndexTidDepth) in /var/www/html/web/modules/contrib/taxonomy_entity_index/src/Plugin/views/argument/TaxonomyEntityIndexDepth.php on line 0
This is because the DeprecationHelper::backwardsCompatibleCall
was placed to differentiate arguments list between Drupal 10.3 and current(preferably ^11), but still placed the parent::__construct($configuration, $plugin_id, $plugin_definition, $termStorage);
which is okay on version earlier than Drupal ^11, but causing failure on Drupal ^11.
Active
1.0
Code