Skip to content

Commit f2114ac

Browse files
Nyholmjbelien
andauthored
Prepare release of 5.0.0 for willdurand/geocoder (#1209)
* Prepare release of 5.0.0 for willdurand/geocoder * Be more restrictrive with PHP versions * minor * Update matrix * minor * minor * cs fixes * Run tests on PHP 8.4 --------- Co-authored-by: Jonathan Beliën <[email protected]> Co-authored-by: Jonathan Beliën <[email protected]>
1 parent 01d57d5 commit f2114ac

File tree

8 files changed

+24
-10
lines changed

8 files changed

+24
-10
lines changed

.github/workflows/component.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
17+
php-version: ['8.2', '8.3', '8.4']
1818
component: [Common, Http, Plugin]
19+
include:
20+
- php-version: '8.0'
21+
component: Http
22+
- php-version: '8.0'
23+
component: Plugin
24+
- php-version: '8.1'
25+
component: Http
26+
- php-version: '8.1'
27+
component: Plugin
1928

2029
name: PHP ${{ matrix.php-version }} / ${{ matrix.component }}
2130

.github/workflows/php.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
15+
php-version: ['8.2', '8.3', '8.4']
1616
deps: ['low', 'high']
1717
name: PHP ${{ matrix.php-version }} (${{ matrix.deps }})
1818
steps:
@@ -63,5 +63,5 @@ jobs:
6363
extensions: curl
6464
- name: Install dependencies
6565
run: composer install --no-progress
66-
- name: Run PHPStan
66+
- name: Run php-cs-fixer
6767
run: composer run-script cs

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"homepage": "http://geocoder-php.org",
1919
"require": {
20-
"php": "^8.0",
20+
"php": ">=8.2",
2121
"igorw/get-in": "^1.0",
2222
"php-http/discovery": "^1.17",
2323
"php-http/promise": "^1.0",

src/Common/.github/workflows/component.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
16+
php-version: ['8.2', '8.3', '8.4']
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Use PHP ${{ matrix.php-version }}

src/Common/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5+
## 5.0.0
6+
7+
- Drop support for PHP < 8.2
8+
- Added return values on classes and interfaces
9+
510
## 4.6.0
611

712
### Removed

src/Common/composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.0"
20+
"php": ">=8.2"
2121
},
2222
"require-dev": {
2323
"nyholm/nsa": "^1.1",
@@ -29,7 +29,7 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "4.1-dev"
32+
"dev-master": "5.1-dev"
3333
}
3434
},
3535
"autoload": {
@@ -49,4 +49,4 @@
4949
"php-http/discovery": false
5050
}
5151
}
52-
}
52+
}

src/Http/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"php-http/discovery": "^1.17",
1919
"psr/http-client-implementation": "^1.0",
2020
"psr/http-factory-implementation": "^1.0",
21-
"willdurand/geocoder": "^4.0"
21+
"willdurand/geocoder": "^4.0|^5.0"
2222
},
2323
"require-dev": {
2424
"nyholm/psr7": "^1.0",

src/Plugin/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"php-http/promise": "^1.0",
1919
"psr/log": "^1.0|^2.0|^3.0",
2020
"psr/simple-cache": "^1.0|^2.0|^3.0",
21-
"willdurand/geocoder": "^4.0"
21+
"willdurand/geocoder": "^4.0|^5.0"
2222
},
2323
"require-dev": {
2424
"cache/void-adapter": "^1.0",

0 commit comments

Comments
 (0)