Compare commits
4 Commits
0.0.7
...
issue/2-up
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84ba22f287 | ||
|
|
eaa1c0a173 | ||
|
|
af13393765 | ||
|
|
7e0c231d88 |
@@ -1,4 +1,4 @@
|
||||
FROM php:8.1-alpine
|
||||
FROM php:8.3-alpine
|
||||
|
||||
WORKDIR /code
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
@@ -14,17 +14,17 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^8.1.0",
|
||||
"symfony/http-client": "^6.1",
|
||||
"symfony/dependency-injection": "^6.1",
|
||||
"symfony/framework-bundle": "^6.1",
|
||||
"symfony/yaml": "^6.1",
|
||||
"php": "^8.3.0",
|
||||
"symfony/http-client": "^7.1",
|
||||
"symfony/dependency-injection": "^7.1",
|
||||
"symfony/framework-bundle": "^7.1",
|
||||
"symfony/yaml": "^7.1",
|
||||
"doctrine/orm": "^2.13"
|
||||
},
|
||||
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"symfony/phpunit-bridge": "^6.1"
|
||||
"symfony/phpunit-bridge": "^7.1"
|
||||
},
|
||||
|
||||
"autoload": {
|
||||
|
||||
@@ -23,3 +23,4 @@ class LatLongModel
|
||||
return $this->longitude;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,10 @@ class Geocoder
|
||||
return null;
|
||||
}
|
||||
|
||||
if (array_key_exists('error', $data)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->createLatLongModel($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user