Skip to content

Commit 7624584

Browse files
authored
Support for PHP 8.1 (#21)
1 parent a994a8a commit 7624584

File tree

3 files changed

+36
-30
lines changed

3 files changed

+36
-30
lines changed

.github/workflows/run-tests.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,36 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.0, 7.4, 7.3]
11+
php: [8.1, 8.0, 7.4]
1212
laravel: [8.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414
include:
15-
- laravel: 8.*
16-
testbench: 6.*
15+
- laravel: 8.*
16+
testbench: 6.*
1717

1818
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
1919

2020
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v2
23-
24-
- name: Cache dependencies
25-
uses: actions/cache@v2
26-
with:
27-
path: ~/.composer/cache/files
28-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29-
30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
35-
coverage: none
36-
37-
- name: Install dependencies
38-
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41-
42-
- name: Execute tests
43-
run: vendor/bin/phpunit
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.composer/cache/files
28+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
35+
coverage: none
36+
37+
- name: Install dependencies
38+
run: |
39+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41+
42+
- name: Execute tests
43+
run: vendor/bin/phpunit

CHANGELOG.md

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

33
All notable changes to `laravel-paddle` will be documented in this file
44

5+
## 2.3.0 - 2021-12-19
6+
7+
- Support for PHP 8.1
8+
- Dropped support for PHP 7.3
9+
510
## 2.2.0 - 2021-02-20
611

712
- Support for [Paddle Sandbox](https://developer.paddle.com/getting-started/sandbox)

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.3|^8.0",
20+
"php": "^7.4|^8.0|^8.1",
2121
"ext-openssl": "*",
2222
"egulias/email-validator": "^2.1.10",
2323
"guzzlehttp/guzzle": "^7.0.1",
24-
"illuminate/support": "^8.0",
25-
"illuminate/validation": "^8.0"
24+
"illuminate/support": "^8.67",
25+
"illuminate/validation": "^8.67"
2626
},
2727
"require-dev": {
28-
"orchestra/testbench": "^6.0"
28+
"orchestra/testbench": "^6.23",
29+
"phpunit/phpunit": "^9.4"
2930
},
3031
"autoload": {
3132
"psr-4": {

0 commit comments

Comments
 (0)