Skip to content

Commit

Permalink
Prepare release of 5.0.0 for willdurand/geocoder (#1209)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Jan 1, 2025
1 parent 01d57d5 commit f2114ac
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
php-version: ['8.2', '8.3', '8.4']
component: [Common, Http, Plugin]
include:
- php-version: '8.0'
component: Http
- php-version: '8.0'
component: Plugin
- php-version: '8.1'
component: Http
- php-version: '8.1'
component: Plugin

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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
php-version: ['8.2', '8.3', '8.4']
deps: ['low', 'high']
name: PHP ${{ matrix.php-version }} (${{ matrix.deps }})
steps:
Expand Down Expand Up @@ -63,5 +63,5 @@ jobs:
extensions: curl
- name: Install dependencies
run: composer install --no-progress
- name: Run PHPStan
- name: Run php-cs-fixer
run: composer run-script cs
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"homepage": "http://geocoder-php.org",
"require": {
"php": "^8.0",
"php": ">=8.2",
"igorw/get-in": "^1.0",
"php-http/discovery": "^1.17",
"php-http/promise": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Common/.github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
php-version: ['8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v4
- name: Use PHP ${{ matrix.php-version }}
Expand Down
5 changes: 5 additions & 0 deletions src/Common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## 5.0.0

- Drop support for PHP < 8.2
- Added return values on classes and interfaces

## 4.6.0

### Removed
Expand Down
6 changes: 3 additions & 3 deletions src/Common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^8.0"
"php": ">=8.2"
},
"require-dev": {
"nyholm/nsa": "^1.1",
Expand All @@ -29,7 +29,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"
"dev-master": "5.1-dev"
}
},
"autoload": {
Expand All @@ -49,4 +49,4 @@
"php-http/discovery": false
}
}
}
}
2 changes: 1 addition & 1 deletion src/Http/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php-http/discovery": "^1.17",
"psr/http-client-implementation": "^1.0",
"psr/http-factory-implementation": "^1.0",
"willdurand/geocoder": "^4.0"
"willdurand/geocoder": "^4.0|^5.0"
},
"require-dev": {
"nyholm/psr7": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php-http/promise": "^1.0",
"psr/log": "^1.0|^2.0|^3.0",
"psr/simple-cache": "^1.0|^2.0|^3.0",
"willdurand/geocoder": "^4.0"
"willdurand/geocoder": "^4.0|^5.0"
},
"require-dev": {
"cache/void-adapter": "^1.0",
Expand Down

0 comments on commit f2114ac

Please sign in to comment.