Compare commits

...

4 Commits

Author SHA1 Message Date
brabli
84ba22f287 Update php version to 8.3 2024-08-05 11:56:05 +01:00
brabli
eaa1c0a173 Update packages to symfony 7 2024-08-05 11:55:32 +01:00
brabli
af13393765 Add check to make test pass 2024-08-05 11:17:22 +01:00
brabli
7e0c231d88 Add newline 2024-08-05 11:17:09 +01:00
4 changed files with 12 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
FROM php:8.1-alpine FROM php:8.3-alpine
WORKDIR /code WORKDIR /code
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

View File

@@ -14,17 +14,17 @@
} }
], ],
"require": { "require": {
"php": "^8.1.0", "php": "^8.3.0",
"symfony/http-client": "^6.1", "symfony/http-client": "^7.1",
"symfony/dependency-injection": "^6.1", "symfony/dependency-injection": "^7.1",
"symfony/framework-bundle": "^6.1", "symfony/framework-bundle": "^7.1",
"symfony/yaml": "^6.1", "symfony/yaml": "^7.1",
"doctrine/orm": "^2.13" "doctrine/orm": "^2.13"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"symfony/phpunit-bridge": "^6.1" "symfony/phpunit-bridge": "^7.1"
}, },
"autoload": { "autoload": {

View File

@@ -23,3 +23,4 @@ class LatLongModel
return $this->longitude; return $this->longitude;
} }
} }

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);
} }