From f87adc6f876160201da1c2bc3a013ab25634f397 Mon Sep 17 00:00:00 2001
From: Lucas D Hedding <lucashedding@1463982.no-reply.drupal.org>
Date: Fri, 4 Aug 2023 09:03:00 -0600
Subject: [PATCH] Issue #3348210 by mehul.gada, John_B, heddn: definition of
 getGeolocation(string $ipAddress) in sub-module missing 'array'

---
 modules/smart_ip_abstract_web_service/src/WebServiceUtility.php | 2 +-
 modules/smart_ip_ipinfodb_web_service/src/WebServiceUtility.php | 2 +-
 .../src/WebServiceUtility.php                                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/smart_ip_abstract_web_service/src/WebServiceUtility.php b/modules/smart_ip_abstract_web_service/src/WebServiceUtility.php
index 0c92160..9f13b23 100644
--- a/modules/smart_ip_abstract_web_service/src/WebServiceUtility.php
+++ b/modules/smart_ip_abstract_web_service/src/WebServiceUtility.php
@@ -38,7 +38,7 @@ class WebServiceUtility extends WebServiceUtilityBase {
    * {@inheritdoc}
    * @throws \GuzzleHttp\Exception\GuzzleException
    */
-  public static function getGeolocation(string $ipAddress = NULL) {
+  public static function getGeolocation(string $ipAddress = NULL): array {
     $url  = self::getUrl($ipAddress);
     $json = self::sendRequest($url);
     $data = Json::decode($json);
diff --git a/modules/smart_ip_ipinfodb_web_service/src/WebServiceUtility.php b/modules/smart_ip_ipinfodb_web_service/src/WebServiceUtility.php
index fb711a5..56dce98 100644
--- a/modules/smart_ip_ipinfodb_web_service/src/WebServiceUtility.php
+++ b/modules/smart_ip_ipinfodb_web_service/src/WebServiceUtility.php
@@ -41,7 +41,7 @@ class WebServiceUtility extends WebServiceUtilityBase {
    * {@inheritdoc}
    * @throws \GuzzleHttp\Exception\GuzzleException
    */
-  public static function getGeolocation(string $ipAddress = NULL) {
+  public static function getGeolocation(string $ipAddress = NULL): array {
     $url  = self::getUrl($ipAddress);
     $json = self::sendRequest($url);
     $data = Json::decode($json);
diff --git a/modules/smart_ip_maxmind_geoip2_web_service/src/WebServiceUtility.php b/modules/smart_ip_maxmind_geoip2_web_service/src/WebServiceUtility.php
index 6daff7d..0349ee2 100644
--- a/modules/smart_ip_maxmind_geoip2_web_service/src/WebServiceUtility.php
+++ b/modules/smart_ip_maxmind_geoip2_web_service/src/WebServiceUtility.php
@@ -38,7 +38,7 @@ class WebServiceUtility extends WebServiceUtilityBase {
    * {@inheritdoc}
    * @throws \GuzzleHttp\Exception\GuzzleException
    */
-  public static function getGeolocation(string $ipAddress = NULL) {
+  public static function getGeolocation(string $ipAddress = NULL): array {
     $url  = self::getUrl($ipAddress);
     $json = self::sendRequest($url);
     $data = Json::decode($json);
-- 
GitLab