Skip to content

Commit 07aeff2

Browse files
authored
Support for PHP 8.1 (#5)
1 parent 05e5bc6 commit 07aeff2

File tree

3 files changed

+34
-24
lines changed

3 files changed

+34
-24
lines changed

.github/workflows/run-tests.yml

+26-20
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,36 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.0, 7.4]
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: Setup PHP
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
29-
coverage: none
30-
31-
- name: Install dependencies
32-
run: |
33-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
34-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
35-
36-
- name: Execute tests
37-
run: vendor/bin/phpunit
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
29+
coverage: none
30+
31+
- name: Install Ghostscript
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y ghostscript
35+
which ghostscript
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

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## 3.1.0 - 2021-12-19
6+
7+
- Added supprt for PHP 8.1
8+
59
## 3.0.1 - 2020-12-23
610

711
- Support for nested request data when using the `ConvertsBase64ToFiles` trait

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4 || ^8.0",
20-
"illuminate/support": "^8.0"
19+
"php": "^7.4 || ^8.0 || ^8.1",
20+
"illuminate/support": "^8.67"
2121
},
2222
"require-dev": {
2323
"html2text/html2text": "^4.3",
2424
"jeremykendall/php-domain-parser": "^6.0",
2525
"laravel/ui": "^2.0 || ^3.0",
2626
"mockery/mockery": "^1.3.3",
2727
"moneyphp/money": "^3.3",
28-
"orchestra/testbench": "^6.0",
29-
"phpunit/phpunit": "^9.0",
28+
"orchestra/testbench": "^6.23",
29+
"phpunit/phpunit": "^9.4",
3030
"spatie/laravel-sitemap": "^5.7",
3131
"symfony/process": "^5.1"
3232
},

0 commit comments

Comments
 (0)