Add check to make test pass

This commit is contained in:
brabli
2024-08-05 11:17:22 +01:00
parent 7e0c231d88
commit af13393765

View File

@@ -30,6 +30,10 @@ class Geocoder
return null; return null;
} }
if (array_key_exists('error', $data)) {
return null;
}
return $this->createLatLongModel($data); return $this->createLatLongModel($data);
} }