Skip to content

Commit b2899c0

Browse files
authored
Merge pull request #141 from spatie/support-php8
Support php8
2 parents 87b8881 + 3672f70 commit b2899c0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [7.4, 7.3, 7.2]
12+
php: [8.0, 7.4, 7.3, 7.2]
1313
laravel: [5.8.*, 6.*, 7.*, 8.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
exclude:
1616
- php: 7.2
1717
laravel: 8.*
18+
- php: 8.0
19+
laravel: 5.8.*
1820
include:
1921
- laravel: 8.*
2022
testbench: 6.*
@@ -41,13 +43,13 @@ jobs:
4143
uses: shivammathur/setup-php@v2
4244
with:
4345
php-version: ${{ matrix.php }}
44-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
46+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
4547
coverage: none
4648

4749
- name: Install dependencies
4850
run: |
4951
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
50-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
52+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5153
5254
- name: Execute tests
5355
run: vendor/bin/phpunit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Adding state behaviour to Eloquent models
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-model-states.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-model-states)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/spatie/laravel-model-states/run-tests?label=tests)](https://github.com/spatie/laravel-model-states/actions?query=workflow%3Arun-tests+branch%3Amaster)
4+
![Test](https://github.com/spatie/laravel-model-states/workflows/Test/badge.svg)
55
![Check & fix styling](https://github.com/spatie/laravel-model-states/workflows/Check%20&%20fix%20styling/badge.svg)
66
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-model-states.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-model-states)
77

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2",
19+
"php": "^7.2|^8.0",
2020
"ext-json": "*",
2121
"facade/ignition-contracts": "^1.0",
2222
"laravel/framework": "~5.8|^6.0|^7.0|^8.0"

0 commit comments

Comments
 (0)