Skip to content
Snippets Groups Projects
Unverified Commit f87adc6f authored by Lucas Hedding's avatar Lucas Hedding
Browse files

Issue #3348210 by mehul.gada, John_B, heddn: definition of...

Issue #3348210 by mehul.gada, John_B, heddn: definition of getGeolocation(string $ipAddress) in sub-module missing 'array'
parent 1b045d38
Branches
Tags
No related merge requests found
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment