Skip to content

Commit 6d231c7

Browse files
committed
feat: allow symfony 8
1 parent 6ceaf27 commit 6d231c7

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"php": "^8.1",
1818
"geocoder-php/plugin": "^1.5",
1919
"php-http/discovery": "^1.14",
20-
"symfony/console": "^5.4 || ^6.4 || ^7.0",
21-
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
22-
"symfony/options-resolver": "^5.4 || ^6.4 || ^7.0",
20+
"symfony/console": "^5.4 || ^6.4 || ^7.0 || ^8.0",
21+
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0 || ^8.0",
22+
"symfony/options-resolver": "^5.4 || ^6.4 || ^7.0 || ^8.0",
2323
"willdurand/geocoder": "^4.6|^5.0"
2424
},
2525
"require-dev": {
@@ -60,13 +60,13 @@
6060
"phpstan/phpstan": "^1.9.2",
6161
"psr/http-client": "^1.0",
6262
"psr/simple-cache": "^1.0 || ^2.0",
63-
"symfony/cache": "^5.4 || ^6.4 || ^7.0",
64-
"symfony/config": "^5.4 || ^6.4 || ^7.0",
65-
"symfony/http-client": "^5.4 || ^6.4 || ^7.0",
66-
"symfony/phpunit-bridge": "^5.4 || ^6.4 || ^7.0",
67-
"symfony/validator": "^5.4 || ^6.4 || ^7.0",
68-
"symfony/var-exporter": "^5.4 || ^6.4 || ^7.0",
69-
"symfony/yaml": "^5.4 || ^6.4 || ^7.0"
63+
"symfony/cache": "^5.4 || ^6.4 || ^7.0 || ^8.0",
64+
"symfony/config": "^5.4 || ^6.4 || ^7.0 || ^8.0",
65+
"symfony/http-client": "^5.4 || ^6.4 || ^7.0 || ^8.0",
66+
"symfony/phpunit-bridge": "^5.4 || ^6.4 || ^7.0 || ^8.0",
67+
"symfony/validator": "^5.4 || ^6.4 || ^7.0 || ^8.0",
68+
"symfony/var-exporter": "^5.4 || ^6.4 || ^7.0 || ^8.0",
69+
"symfony/yaml": "^5.4 || ^6.4 || ^7.0 || ^8.0"
7070
},
7171
"autoload": {
7272
"psr-4": {

src/Command/GeocodeCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ public function __construct(ProviderAggregator $geocoder)
3636
parent::__construct();
3737
}
3838

39-
/**
40-
* @return void
41-
*/
42-
protected function configure()
39+
protected function configure(): void
4340
{
4441
$this
4542
->addArgument('address', InputArgument::REQUIRED, 'The address')

src/Validator/Constraint/AddressValidator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ public function __construct(Provider $addressGeocoder)
3737

3838
/**
3939
* @param mixed $value
40-
*
41-
* @return void
4240
*/
43-
public function validate($value, Constraint $constraint)
41+
public function validate($value, Constraint $constraint): void
4442
{
4543
if (!$constraint instanceof Address) {
4644
throw new UnexpectedTypeException($constraint, Address::class);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
framework:
2+
annotations: false
3+
handle_all_throwables: true
4+
php_errors:
5+
log: true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
framework:
2+
handle_all_throwables: true
3+
php_errors:
4+
log: true

0 commit comments

Comments
 (0)