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

Commit

Permalink
Support for PHP 8.0 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Dec 1, 2020
1 parent 2349c5d commit efdee9f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,22 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4]
php: [8.0, 7.4]
laravel: [8.*, 7.*]
framework: [tailwind, tailwind-2, bootstrap-4]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
livewire: ^2.0
- laravel: 7.*
testbench: 5.*
livewire: ^1.3.2

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

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-livewire-${{ matrix.livewire }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -41,7 +33,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "livewire/livewire:${{ matrix.livewire }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
Expand Down
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

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

## 2.1.2 - 2020-09-29
## 2.3.0 - 2020-12-01

- Support for PHP 8.0
- Dropped support for Livewire v1

## 2.2.0 - 2020-11-25

- Support for Tailwind CSS 2.0 with the Tailwind Forms plugin

## 2.1.2 - 2020-10-21

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

## 2.1.1 - 2020-09-29
## 2.1.1 - 2020-09-28

- Bugfix for select options with numeric keys

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A set of Blade components to rapidly build forms with [Tailwind CSS v1](https://
* Support for [Bootstrap 4 Forms](https://getbootstrap.com/docs/4.0/components/forms/).
* Component logic independent from Blade views, the Tailwind and Bootstrap views use the same logic.
* Bind a target to a form (or a set of elements) to provide default values.
* Support for [Laravel Livewire](https://laravel-livewire.com).
* Support for [Laravel Livewire](https://laravel-livewire.com) v2.
* Support for Spatie's [laravel-translatable](https://github.com/spatie/laravel-translatable).
* Re-populate forms with [old input](https://laravel.com/docs/master/requests#old-input).
* Validation errors.
Expand Down
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@
}
],
"require": {
"php": "^7.4",
"illuminate/support": "^7.22.4 || ^8.0"
"php": "^7.4 || ^8.0",
"illuminate/support": "^7.22.4 || ^8.0",
"symfony/http-foundation": "^5.1.2"
},
"require-dev": {
"livewire/livewire": "^1.3.2 || ^2.0",
"livewire/livewire": "^2.0",
"mockery/mockery": "^1.3.3",
"orchestra/testbench-browser-kit": "^5.1 || ^6.0",
"phpunit/phpunit": "^8.5",
"spatie/laravel-translatable": "^4.4"
"phpunit/phpunit": "^8.5 || ^9.0",
"spatie/laravel-translatable": "^4.4",
"symfony/dom-crawler": "^5.1.14"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/HandlesBoundValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private function getBoundTarget()
* @param string $name
* @return mixed
*/
private function getBoundValue($bind = null, string $name)
private function getBoundValue($bind, string $name)
{
if ($bind === false) {
return null;
Expand Down

0 comments on commit efdee9f

Please sign in to comment.