Skip to content

Commit f560828

Browse files
committed
Allow using Symfony 7 and fix some deprecations
1 parent acee478 commit f560828

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"geocoder-php/plugin": "^1.5",
1616
"php-http/curl-client": "^2.3",
1717
"php-http/discovery": "^1.14",
18-
"symfony/console": "^4.4 || ^5.0 || ^6.0",
19-
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
20-
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
18+
"symfony/console": "^4.4 || ^5.0 || ^6.0 || ^7.0",
19+
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
20+
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0 || ^7.0",
2121
"willdurand/geocoder": "^4.6"
2222
},
2323
"require-dev": {
@@ -63,11 +63,11 @@
6363
"php-http/message": "^1.13",
6464
"phpstan/phpstan": "^1.9.2",
6565
"psr/http-client": "^1.0",
66-
"symfony/cache": "^4.4 || ^5.0 || ^6.0",
67-
"symfony/config": "^4.4 || ^5.0 || ^6.0",
68-
"symfony/phpunit-bridge": "^5.2 || ^6.0",
69-
"symfony/validator": "^4.4 || ^5.0 || ^6.0",
70-
"symfony/yaml": "^4.4 || ^5.0 || ^6.0"
66+
"symfony/cache": "^4.4 || ^5.0 || ^6.0 || ^7.0",
67+
"symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0",
68+
"symfony/phpunit-bridge": "^5.2 || ^6.0 || ^7.0",
69+
"symfony/validator": "^4.4 || ^5.0 || ^6.0 || ^7.0",
70+
"symfony/yaml": "^4.4 || ^5.0 || ^6.0 || ^7.0"
7171
},
7272
"conflict": {
7373
"geocoder-php/nominatim-provider": "<5.0"

src/Command/GeocodeCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ protected function configure()
5555
);
5656
}
5757

58-
/**
59-
* @return int
60-
*/
61-
protected function execute(InputInterface $input, OutputInterface $output)
58+
protected function execute(InputInterface $input, OutputInterface $output): int
6259
{
6360
if ($input->getOption('provider')) {
6461
$this->geocoder->using($input->getOption('provider'));

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ public function __construct(bool $debug)
3030

3131
/**
3232
* Generates the configuration tree builder.
33-
*
34-
* @return TreeBuilder The tree builder
3533
*/
36-
public function getConfigTreeBuilder()
34+
public function getConfigTreeBuilder(): TreeBuilder
3735
{
3836
$treeBuilder = new TreeBuilder('bazinga_geocoder');
3937
$rootNode = $treeBuilder->getRootNode();

0 commit comments

Comments
 (0)