Declaration of Drupal\geolocation_address\Plugin\geolocation\DataProvider\AddressFieldProvider::create must be compatible with...

Created on 21 September 2023, over 1 year ago

Problem/Motivation

Declaration of Drupal\geolocation_address\Plugin\geolocation\DataProvider\AddressFieldProvider::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) must be compatible with Drupal\geolocation\DataProviderBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): Drupal\geolocation\DataProviderInterface in /var/www/html/modules/contrib/geolocation/modules/geolocation_address/src/Plugin/geolocation/DataProvider/AddressFieldProvider.php on line 94

Steps to reproduce

I am getting this with version 4.x when creating a view with a map.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

4.0

Component

Geolocation Field / Backend

Created by

πŸ‡¨πŸ‡¦Canada alberto56

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @alberto56
  • πŸ‡ΊπŸ‡¦Ukraine paulrad

    Hello, @alberto56! Could you please clarify steps to reproduce the issue?

  • Status changed to Closed: duplicate over 1 year ago
  • πŸ‡¨πŸ‡¦Canada alberto56

    Upon inspection, this was fixed in commit fe2d502d - Issue #3384929 by ChristianAdamski: Fix v4 Testing (10 days ago), where "public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)" was changed to "public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): DataProviderInterface" in ./modules/geolocation_address/src/Plugin/geolocation/DataProvider/AddressFieldProvider.php

    However it is not included in the 4.0.0-alpha2 release, which I was using.

    I will therefore set this to duplicate of #3384929 and starting using the latest dev release, my apologies!

Production build 0.71.5 2024