Skip to content

Commit e9d698b

Browse files
authored
Merge pull request #364 from norkunas/sf7.3
Add Symfony 7.3 support
2 parents 8826cfe + 75319ca commit e9d698b

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
fail-fast: false
6464
matrix:
6565
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
66-
sf_version: [ '5.4.*', '6.4.*', '7.2.*' ]
66+
sf_version: [ '5.4.*', '6.4.*', '7.2.*', '7.3.*' ]
6767
exclude:
6868
- php: '7.4'
6969
sf_version: '6.4.*'
@@ -75,6 +75,12 @@ jobs:
7575
sf_version: '7.2.*'
7676
- php: '8.1'
7777
sf_version: '7.2.*'
78+
- php: '7.4'
79+
sf_version: '7.3.*'
80+
- php: '8.0'
81+
sf_version: '7.3.*'
82+
- php: '8.1'
83+
sf_version: '7.3.*'
7884

7985
steps:
8086
- name: "Checkout code"
@@ -87,6 +93,10 @@ jobs:
8793
tools: flex
8894
coverage: none
8995

96+
- name: Configure minimum stability
97+
if: matrix.sf_version == '7.3'
98+
run: composer config minimum-stability beta
99+
90100
- name: "Install Composer dependencies"
91101
env:
92102
SYMFONY_REQUIRE: ${{ matrix.sf_version }}

config/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
Bazinga\GeocoderBundle\Command\GeocodeCommand:
2828
arguments: ['@Geocoder\ProviderAggregator']
2929
tags:
30-
- { name: 'console.command', command: 'geocoder:geocode' }
30+
- { name: 'console.command', command: 'geocoder:geocode', description: 'Geocode an address or a ip address' }
3131

3232
Bazinga\GeocoderBundle\Validator\Constraint\AddressValidator:
3333
arguments: ['@geocoder']

src/Command/GeocodeCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
use Geocoder\ProviderAggregator;
1616
use Geocoder\Query\GeocodeQuery;
17+
use Symfony\Component\Console\Attribute\AsCommand;
1718
use Symfony\Component\Console\Command\Command;
1819
use Symfony\Component\Console\Input\InputArgument;
1920
use Symfony\Component\Console\Input\InputInterface;
@@ -23,6 +24,7 @@
2324
/**
2425
* @author Markus Bachmann <[email protected]>
2526
*/
27+
#[AsCommand(name: 'geocoder:geocode', description: 'Geocode an address or a ip address')]
2628
class GeocodeCommand extends Command
2729
{
2830
private ProviderAggregator $geocoder;
@@ -40,8 +42,6 @@ public function __construct(ProviderAggregator $geocoder)
4042
protected function configure()
4143
{
4244
$this
43-
->setName('geocoder:geocode')
44-
->setDescription('Geocode an address or a ip address')
4545
->addArgument('address', InputArgument::REQUIRED, 'The address')
4646
->addOption('provider', null, InputOption::VALUE_OPTIONAL)
4747
->setHelp(<<<'HELP'

tests/Command/GeocodeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testExecute(): void
6666
->willReturn([]);
6767

6868
$app = new Application($kernel);
69-
$app->add(new GeocodeCommand($geocoder));
69+
$app->add((new GeocodeCommand($geocoder))->setName('geocoder:geocode'));
7070

7171
$command = $app->find('geocoder:geocode');
7272

tests/baseline-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@
8181
%Geocoder\\Model\\Address::__construct\(\): Implicitly marking parameter \$country as nullable is deprecated, the explicit nullable type must be used instead%
8282
%Geocoder\\Model\\Address::__construct\(\): Implicitly marking parameter \$timezone as nullable is deprecated, the explicit nullable type must be used instead%
8383
%Geocoder\\ProviderAggregator::__construct\(\): Implicitly marking parameter \$decider as nullable is deprecated, the explicit nullable type must be used instead%
84+
%Since symfony/var-exporter 7.3: The "Symfony\\Component\\VarExporter\\LazyGhostTrait" trait is deprecated, use native lazy objects instead.%

0 commit comments

Comments
 (0)