Skip to content

Commit

Permalink
Added support for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Aug 28, 2021
1 parent cce288e commit 84afea8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']

steps:
- name: Checkout Code
Expand All @@ -27,6 +27,10 @@ jobs:
- name: Setup Problem Matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Install PHP Dependencies
uses: nick-invision/retry@v1
with:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ CHANGE LOG
==========


## V1.0.2 (28/08/2021)

* Added support for PHP 8.1


## V1.0.1 (13/04/2020)

* Updated funding information
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Result Type was created by, and is maintained by [Graham Campbell](https://githu

## Installation

Result Type requires [PHP](https://php.net) 7.0-8.0.
Result Type requires [PHP](https://php.net) 7.0-8.1.

To get the latest version, simply require the project using [Composer](https://getcomposer.org):

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"authors": [
{
"name": "Graham Campbell",
"email": "graham@alt-three.com"
"email": "hello@gjcampbell.co.uk"
}
],
"require": {
"php": "^7.0 || ^8.0",
"phpoption/phpoption": "^1.7.3"
"phpoption/phpoption": "^1.8"
},
"require-dev": {
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.7"
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 84afea8

Please sign in to comment.