definition of getGeolocation(string $ipAddress) in sub-module missing 'array'

Created on 15 March 2023, almost 2 years ago
Updated 1 May 2024, 8 months ago

Error message: Declaration of Drupal\\smart_ip_maxmind_geoip2_web_service\\WebServiceUtility::getGeolocation(?string $ipAddress = null) must be compatible with Drupal\\smart_ip\\WebServiceUtilityInterface::getGeolocation(string $ipAddress): array in ...smart_ip/modules/smart_ip_maxmind_geoip2_web_service/src/WebServiceUtility.php

Fix:

-  public static function getGeolocation(string $ipAddress = NULL) {

+  public static function getGeolocation(string $ipAddress = NULL): array {

in WebServiceUtility.php in smart_ip_maxmind_geoip2_web_service and smart_ip_ipinfodb_web_service and smart_ip_ipinfodb_web_service

๐Ÿ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)

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

Comments & Activities

Production build 0.71.5 2024