Skip to content

Commit 19a7677

Browse files
committed
Drop support for Symfony < 5.4, add Symfony 6.3 to CI, update .gitattributes file
1 parent 608f883 commit 19a7677

8 files changed

+23
-88
lines changed

.gitattributes

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
.editorconfig export-ignore
2-
.gitattributes export-ignore
3-
/.github/ export-ignore
4-
.gitignore export-ignore
5-
/.php_cs export-ignore
6-
/.scrutinizer.yml export-ignore
7-
/.styleci.yml export-ignore
8-
/.travis.yml export-ignore
9-
/behat.yml.dist export-ignore
10-
/features/ export-ignore
11-
/phpspec.ci.yml export-ignore
12-
/phpspec.yml.dist export-ignore
13-
/phpunit.xml.dist export-ignore
14-
/spec/ export-ignore
15-
/Tests/ export-ignore
1+
.editorconfig export-ignore
2+
.gitattributes export-ignore
3+
/.github/ export-ignore
4+
.gitignore export-ignore
5+
/.php-cs-fixer.php export-ignore
6+
/CHANGELOG.md export-ignore
7+
/CODE_OF_CONDUCT.md export-ignore
8+
/CONTRIBUTING.md export-ignore
9+
/doc export-ignore
10+
/phpstan.neon.dist export-ignore
11+
/phpstan-baseline.neon export-ignore
12+
/phpunit.xml.dist export-ignore
13+
/tests/ export-ignore

.github/workflows/ci.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ jobs:
6464
dependencies: ['highest']
6565
php: ['7.4', '8.0', '8.1', '8.2']
6666
include:
67-
- php: '7.4'
68-
sf_version: '4.4.*'
69-
dependencies: 'lowest'
70-
- php: '7.4'
71-
sf_version: '4.4.*'
7267
- php: '7.4'
7368
sf_version: '5.4.*'
7469
dependencies: 'lowest'
@@ -82,6 +77,8 @@ jobs:
8277
sf_version: '6.0.*'
8378
- php: '8.2'
8479
sf_version: '6.2.*'
80+
- php: '8.2'
81+
sf_version: '6.3.*'
8582
steps:
8683
- name: "Setup PHP"
8784
uses: shivammathur/setup-php@v2

composer.json

+8-8
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": "^5.4 || ^6.0",
19+
"symfony/framework-bundle": "^5.4 || ^6.0",
20+
"symfony/options-resolver": "^5.4 || ^6.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": "^5.4 || ^6.0",
67+
"symfony/config": "^5.4 || ^6.0",
68+
"symfony/phpunit-bridge": "^5.4 || ^6.0",
69+
"symfony/validator": "^5.4 || ^6.0",
70+
"symfony/yaml": "^5.4 || ^6.0"
7171
},
7272
"conflict": {
7373
"geocoder-php/nominatim-provider": "<5.0"

tests/Functional/BundleInitializationTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
namespace Bazinga\GeocoderBundle\Tests\Functional;
1414

1515
use Bazinga\GeocoderBundle\BazingaGeocoderBundle;
16-
use Bazinga\GeocoderBundle\Tests\PublicServicePass;
1716
use Geocoder\Dumper\GeoArray;
1817
use Geocoder\Dumper\GeoJson;
1918
use Geocoder\Dumper\Gpx;
@@ -44,8 +43,6 @@ protected static function createKernel(array $options = []): KernelInterface
4443
*/
4544
$kernel = parent::createKernel($options);
4645
$kernel->addTestBundle(BazingaGeocoderBundle::class);
47-
$kernel->addTestCompilerPass(new PublicServicePass('|[Bb]azinga:*|'));
48-
$kernel->addTestCompilerPass(new PublicServicePass('|[gG]eocoder:*|'));
4946
$kernel->handleOptions($options);
5047

5148
return $kernel;

tests/Functional/GeocoderListenerTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Bazinga\GeocoderBundle\Tests\Functional\Fixtures\Entity\DummyWithGetter;
1818
use Bazinga\GeocoderBundle\Tests\Functional\Fixtures\Entity\DummyWithInvalidGetter;
1919
use Bazinga\GeocoderBundle\Tests\Functional\Fixtures\Entity\DummyWithProperty;
20-
use Bazinga\GeocoderBundle\Tests\PublicServicePass;
2120
use Doctrine\Bundle\DoctrineBundle\ConnectionFactory;
2221
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
2322
use Doctrine\ORM\Tools\SchemaTool;
@@ -56,8 +55,6 @@ protected static function createKernel(array $options = []): KernelInterface
5655
$kernel = parent::createKernel($options);
5756
$kernel->addTestBundle(DoctrineBundle::class);
5857
$kernel->addTestBundle(BazingaGeocoderBundle::class);
59-
$kernel->addTestCompilerPass(new PublicServicePass('|[Bb]azinga:*|'));
60-
$kernel->addTestCompilerPass(new PublicServicePass('|[gG]eocoder:*|'));
6158
if (defined(ConnectionFactory::class.'::DEFAULT_SCHEME_MAP')) {
6259
$kernel->addTestConfig(static function (ContainerBuilder $container) {
6360
$container->prependExtensionConfig('doctrine', [

tests/Functional/PluginInteractionTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
namespace Bazinga\GeocoderBundle\Tests\Functional;
1414

1515
use Bazinga\GeocoderBundle\BazingaGeocoderBundle;
16-
use Bazinga\GeocoderBundle\Tests\PublicServicePass;
1716
use Geocoder\Query\GeocodeQuery;
1817
use Nyholm\BundleTest\TestKernel;
1918
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
@@ -36,8 +35,6 @@ protected static function createKernel(array $options = []): KernelInterface
3635
*/
3736
$kernel = parent::createKernel($options);
3837
$kernel->addTestBundle(BazingaGeocoderBundle::class);
39-
$kernel->addTestCompilerPass(new PublicServicePass('|[Bb]azinga:*|'));
40-
$kernel->addTestCompilerPass(new PublicServicePass('|[gG]eocoder:*|'));
4138
$kernel->handleOptions($options);
4239

4340
return $kernel;

tests/Functional/ProviderFactoryTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
namespace Bazinga\GeocoderBundle\Tests\Functional;
1414

1515
use Bazinga\GeocoderBundle\BazingaGeocoderBundle;
16-
use Bazinga\GeocoderBundle\Tests\PublicServicePass;
1716
use Geocoder\Provider\AlgoliaPlaces\AlgoliaPlaces;
1817
use Geocoder\Provider\ArcGISOnline\ArcGISOnline;
1918
use Geocoder\Provider\BingMaps\BingMaps;
@@ -64,8 +63,6 @@ protected static function createKernel(array $options = []): KernelInterface
6463
*/
6564
$kernel = parent::createKernel($options);
6665
$kernel->addTestBundle(BazingaGeocoderBundle::class);
67-
$kernel->addTestCompilerPass(new PublicServicePass('|[Bb]azinga:*|'));
68-
$kernel->addTestCompilerPass(new PublicServicePass('|[gG]eocoder:*|'));
6966
$kernel->handleOptions($options);
7067

7168
return $kernel;

tests/PublicServicePass.php

-48
This file was deleted.

0 commit comments

Comments
 (0)