- Issue created by @jaapjan
- πΊπΈUnited States DamienMcKenna NH, USA
There's an existing issue to fix this problem: π "Drupal\migrate_tools\Commands\MigrateToolsCommands" not found PathRedirectImportCommands Postponed: needs info
In order to support PHP 8.4 and Drupal 11.1 I've updated to the latest migrate_tools dev version but this is not compatible with path_redirect_import.
When using the latest dev version of migrate_tools (commit https://git.drupalcode.org/project/migrate_tools/-/commit/a608e4b77057bd... on 6.0.x branch) and the latest stable version of path_redirect_import (2.1.0) I get this error when doing a drush cache clear
:
PHP Fatal error: Declaration of Drupal\path_redirect_import\Drush\Commands\PathRedirectImportCommands::create(Symfony\Component\DependencyInjection\ContainerInterface $container): Drupal\migrate_tools\Drush\Commands\MigrateToolsCommands must be compatible with Drupal\migrate_tools\Drush\Commands\MigrateToolsCommands::create(Symfony\Component\DependencyInjection\ContainerInterface $container): static in /var/www/web/modules/contrib/path_redirect_import/src/Drush/Commands/PathRedirectImportCommands.php on line 77
The issue is that migrate_tools src/MigrateToolsCommands.php
now has new arguments in the constructor. The src/PathRedirectImportCommands.php
in the path_redirect_import module is extending that class and should pass the correct and requirement arguments to the parent class.
drush cr
.src/PathRedirectImportCommands.php
arguments so that all the required and correct arguments are passed to the parent class.drush.services.yml
accordingly.Active
2.1
Code
There's an existing issue to fix this problem: π "Drupal\migrate_tools\Commands\MigrateToolsCommands" not found PathRedirectImportCommands Postponed: needs info