Problem/Motivation
After module installation, running drush rebuild:
PHP Fatal error: Declaration of Drupal\paragraph_instances\Controller\InstancesController::create(Drupal\paragraph_instances\Controller\ContainerInterface $container) must be compatible with Drupal\Core\Controller\ControllerBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container) in /var/www/my_site/web/modules/contrib/paragraph_instances/src/Controller/InstancesController.php on line 171
tested with Drupal 9.3.15
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | php-error-fix-3291630-5.patch | 528 bytes | dikshi suthar |
Comments
Comment #3
dikshi suthar commentedComment #4
emarcarelli commentedBohus Ulrych can you confirm if this is fixed in 1.0.x-dev?
Comment #5
dikshi suthar commentedIn version 1.0.1 namespace is missing in InstancesController.php
use Symfony\Component\DependencyInjection\ContainerInterface;
Please update as per patch.
Comment #6
bohus ulrychYes, with this update (v1.0.2) I'm able to enable this module.
But there is another bug, I'm going to create another ticket.
Comment #7
emarcarelli commented