Skip to content

Commit

Permalink
Add PHP 8.0 support
Browse files Browse the repository at this point in the history
Add PHP 8.0 support
  • Loading branch information
anteriovieira authored Dec 15, 2020
2 parents 60fb60a + 57e6661 commit 5659c73
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 15 deletions.
18 changes: 15 additions & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,27 @@ filter:

build:
nodes:
php72:
php73:
environment:
php:
version: 7.3
tests:
override:
- php-scrutinizer-run
-
command: vendor/bin/phpunit --coverage-clover=coverage72
command: vendor/bin/phpunit --coverage-clover=coverage73
coverage:
file: coverage72
file: coverage73
format: php-clover
php80:
environment:
php:
version: "8.0.0"
tests:
override:
- php-scrutinizer-run
-
command: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage80
coverage:
file: coverage80
format: php-clover
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ language: php

php:
- 7.3
- 8.0

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v12.0.0 (2020-12-02)
### Added
- PHP 8.0 support

### Removed
- Illuminate 5.8 support

## v9.0.0 (2019-03-02)
### Added
- Illuminate 5.8 support
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ The package documentation can be found on the [official website](http://www.lara
## Version Information
Version | Illuminate | Status | PHP Version
:----------|:--------------|:------------------------|:------------
11.x | 5.8.x - 8.x.x | Active support :rocket: | >= 7.3
12.x | 6.x.x - 8.x.x | Active support :rocket: | >= 7.3 \| 8.0
11.x | 5.8.x - 8.x.x | Active support | >= 7.3
10.x | 5.8.x - 7.x.x | Active support | >= 7.2.5
9.x | 5.8.x - 6.x.x | Active support | >= 7.1.3
8.x | 5.2.x - 5.7.x | Active support | >= 7.0.13
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
}
],
"require": {
"php": "^7.3",
"illuminate/console": "^5.8|^6.0|^7.0|^8.0",
"illuminate/database": "^5.8|^6.0|^7.0|^8.0",
"illuminate/filesystem": "^5.8|^6.0|^7.0|^8.0"
"php": "^7.3|^8.0",
"illuminate/console": "^6.0|^7.0|^8.0",
"illuminate/database": "^6.0|^7.0|^8.0",
"illuminate/filesystem": "^6.0|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0",
"phpunit/phpunit": "^9.0",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^3.8",
"orchestra/testbench": "^4.0",
"ramsey/uuid": "^3.0"
},
"autoload": {
Expand Down
12 changes: 7 additions & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
Expand All @@ -16,9 +18,9 @@
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</include>
</coverage>
</phpunit>

0 comments on commit 5659c73

Please sign in to comment.