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

Commit efdee9f

Browse files
authored
Support for PHP 8.0 (#27)
1 parent 2349c5d commit efdee9f

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,22 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [7.4]
11+
php: [8.0, 7.4]
1212
laravel: [8.*, 7.*]
1313
framework: [tailwind, tailwind-2, bootstrap-4]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
1616
- laravel: 8.*
1717
testbench: 6.*
18-
livewire: ^2.0
1918
- laravel: 7.*
2019
testbench: 5.*
21-
livewire: ^1.3.2
2220

23-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.framework }}
21+
name: P${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} - Front-end Framework ${{ matrix.framework }}
2422

2523
steps:
2624
- name: Checkout code
2725
uses: actions/checkout@v2
2826

29-
- name: Cache dependencies
30-
uses: actions/cache@v2
31-
with:
32-
path: ~/.composer/cache/files
33-
key: dependencies-laravel-${{ matrix.laravel }}-livewire-${{ matrix.livewire }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34-
3527
- name: Setup PHP
3628
uses: shivammathur/setup-php@v2
3729
with:
@@ -41,7 +33,7 @@ jobs:
4133

4234
- name: Install dependencies
4335
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "livewire/livewire:${{ matrix.livewire }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
36+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4537
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
4638
4739
- name: Execute tests

CHANGELOG.md

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

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

5-
## 2.1.2 - 2020-09-29
5+
## 2.3.0 - 2020-12-01
6+
7+
- Support for PHP 8.0
8+
- Dropped support for Livewire v1
9+
10+
## 2.2.0 - 2020-11-25
11+
12+
- Support for Tailwind CSS 2.0 with the Tailwind Forms plugin
13+
14+
## 2.1.2 - 2020-10-21
615

716
- Bugfix for multiple checkbox/radio elements with the same name
817

9-
## 2.1.1 - 2020-09-29
18+
## 2.1.1 - 2020-09-28
1019

1120
- Bugfix for select options with numeric keys
1221

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A set of Blade components to rapidly build forms with [Tailwind CSS v1](https://
1818
* Support for [Bootstrap 4 Forms](https://getbootstrap.com/docs/4.0/components/forms/).
1919
* Component logic independent from Blade views, the Tailwind and Bootstrap views use the same logic.
2020
* Bind a target to a form (or a set of elements) to provide default values.
21-
* Support for [Laravel Livewire](https://laravel-livewire.com).
21+
* Support for [Laravel Livewire](https://laravel-livewire.com) v2.
2222
* Support for Spatie's [laravel-translatable](https://github.com/spatie/laravel-translatable).
2323
* Re-populate forms with [old input](https://laravel.com/docs/master/requests#old-input).
2424
* Validation errors.

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@
2626
}
2727
],
2828
"require": {
29-
"php": "^7.4",
30-
"illuminate/support": "^7.22.4 || ^8.0"
29+
"php": "^7.4 || ^8.0",
30+
"illuminate/support": "^7.22.4 || ^8.0",
31+
"symfony/http-foundation": "^5.1.2"
3132
},
3233
"require-dev": {
33-
"livewire/livewire": "^1.3.2 || ^2.0",
34+
"livewire/livewire": "^2.0",
35+
"mockery/mockery": "^1.3.3",
3436
"orchestra/testbench-browser-kit": "^5.1 || ^6.0",
35-
"phpunit/phpunit": "^8.5",
36-
"spatie/laravel-translatable": "^4.4"
37+
"phpunit/phpunit": "^8.5 || ^9.0",
38+
"spatie/laravel-translatable": "^4.4",
39+
"symfony/dom-crawler": "^5.1.14"
3740
},
3841
"autoload": {
3942
"psr-4": {

src/Components/HandlesBoundValues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private function getBoundTarget()
3333
* @param string $name
3434
* @return mixed
3535
*/
36-
private function getBoundValue($bind = null, string $name)
36+
private function getBoundValue($bind, string $name)
3737
{
3838
if ($bind === false) {
3939
return null;

0 commit comments

Comments
 (0)