From af133937651663c8afdc45715bfe1ce723421812 Mon Sep 17 00:00:00 2001 From: brabli <67018167+Brabli@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:17:22 +0100 Subject: [PATCH] Add check to make test pass --- src/Service/Geocoder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Service/Geocoder.php b/src/Service/Geocoder.php index 6ba10e0..72e4ec9 100644 --- a/src/Service/Geocoder.php +++ b/src/Service/Geocoder.php @@ -30,6 +30,10 @@ class Geocoder return null; } + if (array_key_exists('error', $data)) { + return null; + } + return $this->createLatLongModel($data); }