Problem/Motivation
PHP Fatal error: Declaration of Drupal\search_api_gendev\Controller\ItemController::create(Symfony\Component\DependencyInjection\ContainerInterface $container) must be compatible with Drupal\devel\Controller\EntityDebugController::create(Symfony\Component\DependencyInjection\ContainerInterface $container): static in /var/www/docroot/modules/contrib/search_api_gendev/src/Controller/ItemController.php on line 44
Steps to reproduce
composer require 'drupal/search_api_gendev:1.0.x-dev@dev'
drush en search_api_gendev
Proposed resolution
Adds : static to line 44 like this
public static function create(ContainerInterface $container): static {
Remaining tasks
Patch validation
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3444684.patch | 546 bytes | franckylfs |
Issue fork search_api_gendev-3444684
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
franckylfs commentedComment #4
birk commentedThank you, sorry for the loooong reply time.
Comment #5
franckylfs commentedThanks to you. Better late than never, they say ;)