Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit de9864b

Browse files
authored
Support for PHP 8.1 (#72)
1 parent 643f2bb commit de9864b

File tree

3 files changed

+32
-26
lines changed

3 files changed

+32
-26
lines changed

.github/workflows/run-tests.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,36 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.0, 7.4]
12-
laravel: [8.*, 7.*]
11+
php: [8.1, 8.0, 7.4]
12+
laravel: [8.*]
1313
framework: [tailwind, tailwind-2, bootstrap-4, bootstrap-5]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 8.*
17-
testbench: 6.*
18-
- laravel: 7.*
19-
testbench: 5.*
16+
- laravel: 8.*
17+
testbench: 6.*
18+
exclude:
19+
- laravel: 7.*
20+
php: 8.1
2021

2122
name: P${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} - Front-end Framework ${{ matrix.framework }}
2223

2324
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v2
25+
- name: Checkout code
26+
uses: actions/checkout@v2
2627

27-
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
29-
with:
30-
php-version: ${{ matrix.php }}
31-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
32-
coverage: none
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
33+
coverage: none
3334

34-
- name: Install dependencies
35-
run: |
36-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
37-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
35+
- name: Install dependencies
36+
run: |
37+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
38+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3839
39-
- name: Execute tests
40-
env:
41-
FORM_COMPONENTS_FRAMEWORK: ${{ matrix.framework }}
42-
run: vendor/bin/phpunit
40+
- name: Execute tests
41+
env:
42+
FORM_COMPONENTS_FRAMEWORK: ${{ matrix.framework }}
43+
run: vendor/bin/phpunit

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

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

5+
## 3.3.0 - 2021-12-19
6+
7+
- Support for PHP 8.1
8+
- Dropped support for Laravel 7
9+
510
## 3.2.0 - 2021-11-01
611

712
- Support for `select` placeholder

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
}
3030
],
3131
"require": {
32-
"php": "^7.4 || ^8.0",
33-
"illuminate/support": "^7.22.4 || ^8.0",
32+
"php": "^7.4 || ^8.0 || ^8.1",
33+
"illuminate/support": "^8.67",
3434
"symfony/http-foundation": "^5.1.2"
3535
},
3636
"require-dev": {
3737
"livewire/livewire": "^2.0",
3838
"mockery/mockery": "^1.3.3",
39-
"orchestra/testbench-browser-kit": "^5.1 || ^6.0",
40-
"phpunit/phpunit": "^8.5 || ^9.0",
39+
"orchestra/testbench-browser-kit": "^6.23",
40+
"phpunit/phpunit": "^9.5",
4141
"spatie/laravel-translatable": "^4.4",
4242
"symfony/dom-crawler": "^5.1.14"
4343
},

0 commit comments

Comments
 (0)