Skip to content

Commit 9053a03

Browse files
authored
Merge pull request #328 from norkunas/upd
Add Symfony 6.1 to CI and upgrade some dependencies
2 parents e17f509 + a04f60a commit 9053a03

File tree

6 files changed

+56
-26
lines changed

6 files changed

+56
-26
lines changed

.github/workflows/ci.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
name: CI
22
on: [push, pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
6+
cancel-in-progress: true
7+
48
jobs:
59
phpstan:
610
name: "PHPStan"
711
runs-on: ubuntu-latest
812
env:
9-
php-version: 8.0
13+
php-version: 8.1
1014
steps:
1115
- name: "Setup PHP"
1216
uses: shivammathur/setup-php@v2
1317
with:
1418
php-version: ${{ env.php-version }}
15-
tools: composer:v2, flex, cs2pr
19+
tools: composer:v2, flex
1620

1721
- name: "Checkout code"
1822
uses: actions/checkout@v2
@@ -22,13 +26,13 @@ jobs:
2226
composer install --prefer-dist --no-progress --no-interaction --optimize-autoloader
2327
2428
- name: "Run PHPStan"
25-
run: vendor/bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr
29+
run: vendor/bin/phpstan analyse --no-progress
2630

2731
php-cs-fixer:
2832
name: PHP-CS-Fixer
2933
runs-on: ubuntu-latest
3034
env:
31-
php-version: 8.0
35+
php-version: 8.1
3236
steps:
3337
- name: "Setup PHP"
3438
uses: shivammathur/setup-php@v2
@@ -54,13 +58,11 @@ jobs:
5458
fail-fast: true
5559
matrix:
5660
strategy: ['default']
57-
php: ['7.3', '7.4', '8.0', '8.1']
61+
php: ['7.4', '8.0', '8.1']
5862
include:
59-
- php: '7.3'
60-
sf_version: '4.4.*'
61-
strategy: 'lowest'
6263
- php: '7.4'
6364
sf_version: '5.4.*'
65+
strategy: 'lowest'
6466
- php: '8.0'
6567
sf_version: '5.4.*'
6668
- php: '8.1'
@@ -69,6 +71,8 @@ jobs:
6971
sf_version: '6.0.*'
7072
- php: '8.1'
7173
sf_version: '6.0.*'
74+
- php: '8.1'
75+
sf_version: '6.1.*'
7276
steps:
7377
- name: "Setup PHP"
7478
uses: shivammathur/setup-php@v2
@@ -118,6 +122,8 @@ jobs:
118122
sf_version: '6.0.*'
119123
- php: '8.1'
120124
sf_version: '6.0.*'
125+
- php: '8.1'
126+
sf_version: '6.1.*'
121127
steps:
122128
- name: "Setup PHP"
123129
uses: shivammathur/setup-php@v2

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
The changelog describes what have been "Added", "Changed", "Removed" or "Fixed" between versions.
44

5-
## Version 5.16.3
5+
## Version 5.17.0
66

77
### Changed
88

9+
- Updated PHP requirement to ^7.4
10+
- Updated minimum required version for some dependencies
911
- Deprecate `Address::$errorNames` in favour of `Address::ERROR_NAMES`.
1012

1113
## Version 5.16.2

Validator/Constraint/Address.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Address extends Constraint
3535
/**
3636
* @var string[]
3737
*
38-
* @deprecated since BazingaGeocoderBundle 5.16, use const ERROR_NAMES instead
38+
* @deprecated since BazingaGeocoderBundle 5.17, use const ERROR_NAMES instead
3939
*/
4040
protected static $errorNames = self::ERROR_NAMES;
4141

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.3 || ^8.0",
15-
"geocoder-php/plugin": "^1.3",
16-
"php-http/discovery": "^1.13",
14+
"php": "^7.4 || ^8.0",
15+
"geocoder-php/plugin": "^1.4",
16+
"php-http/discovery": "^1.14",
1717
"symfony/console": "^4.4 || ^5.0 || ^6.0",
1818
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
1919
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
2020
"willdurand/geocoder": "^4.4"
2121
},
2222
"require-dev": {
2323
"doctrine/orm": "~2.8",
24-
"fakerphp/faker": "^1.14",
25-
"friendsofphp/php-cs-fixer": "^3.4",
24+
"fakerphp/faker": "^1.19",
25+
"friendsofphp/php-cs-fixer": "^3.8",
2626
"geocoder-php/algolia-places-provider": "^0.3",
2727
"geocoder-php/arcgis-online-provider": "^4.3",
2828
"geocoder-php/bing-maps-provider": "^4.2",
@@ -52,12 +52,12 @@
5252
"geocoder-php/tomtom-provider": "^4.2",
5353
"geocoder-php/yandex-provider": "^4.4",
5454
"geoip/geoip": "~1.17",
55-
"nyholm/nsa": "^1.2",
56-
"nyholm/psr7": "^1.3",
55+
"nyholm/nsa": "^1.3",
56+
"nyholm/psr7": "^1.5",
5757
"nyholm/symfony-bundle-test": "dev-master",
5858
"php-http/curl-client": "^2.2",
59-
"php-http/message": "^1.5",
60-
"phpstan/phpstan": "^1.2",
59+
"php-http/message": "^1.13",
60+
"phpstan/phpstan": "^1.7",
6161
"symfony/config": "^4.4 || ^5.0 || ^6.0",
6262
"symfony/phpunit-bridge": "^5.2 || ^6.0",
6363
"symfony/validator": "^4.4 || ^5.0 || ^6.0",

phpstan-baseline.neon

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeParentInterface\\:\\:end\\(\\)\\.$#"
5+
count: 2
6+
path: DependencyInjection/Configuration.php
7+
8+
-
9+
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeParentInterface\\:\\:variableNode\\(\\)\\.$#"
10+
count: 1
11+
path: DependencyInjection/Configuration.php
12+
13+
-
14+
message: "#^Class Geocoder\\\\Provider\\\\Geoip\\\\Geoip not found\\.$#"
15+
count: 1
16+
path: ProviderFactory/GeoipFactory.php
17+
18+
-
19+
message: "#^Instantiated class Geocoder\\\\Provider\\\\Geoip\\\\Geoip not found\\.$#"
20+
count: 1
21+
path: ProviderFactory/GeoipFactory.php
22+
23+
-
24+
message: "#^Method Bazinga\\\\GeocoderBundle\\\\ProviderFactory\\\\GeoipFactory\\:\\:getProvider\\(\\) should return Geocoder\\\\Provider\\\\Provider but returns Geocoder\\\\Provider\\\\Geoip\\\\Geoip\\.$#"
25+
count: 1
26+
path: ProviderFactory/GeoipFactory.php

phpstan.neon.dist

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
paths:
36
- %currentWorkingDirectory%
47
excludePaths:
58
- ./vendor/
69
- ./Tests/
710
level: 7
8-
ignoreErrors:
9-
-
10-
path: %currentWorkingDirectory%/DependencyInjection/Configuration.php
11-
message: '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::(end|variableNode)#'
12-
-
13-
path: %currentWorkingDirectory%/ProviderFactory/GeoipFactory.php
14-
message: '#Geocoder\\Provider\\Geoip\\Geoip#'

0 commit comments

Comments
 (0)