Skip to content

Commit 6b036ea

Browse files
committed
Add support for Laravel 9 and drop support for Laravel <6 and PHP <7.2
1 parent 8744456 commit 6b036ea

File tree

4 files changed

+19
-27
lines changed

4 files changed

+19
-27
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ checks:
2020
tools:
2121
external_code_coverage:
2222
timeout: 600
23-
runs: 9
23+
runs: 4
2424

2525
build:
2626
nodes:

.travis.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,27 @@ language: php
22

33
matrix:
44
include:
5-
- php: "7.1"
6-
env: LARAVEL_VERSION="5.5.*"
7-
- php: "7.2"
8-
env: LARAVEL_VERSION="5.5.*"
9-
- php: "7.2"
10-
env: LARAVEL_VERSION="5.6.*"
11-
- php: "7.2"
12-
env: LARAVEL_VERSION="5.7.*"
13-
- php: "7.2"
14-
env: LARAVEL_VERSION="5.8.*"
155
- php: "7.2"
166
env: LARAVEL_VERSION="^6.0" RUN_CS_FIXER=1
177
- php: "7.3"
188
env: LARAVEL_VERSION="^7.0"
19-
- php: "7.3"
20-
env: LARAVEL_VERSION="^8.0"
219
- php: "7.4"
2210
env: LARAVEL_VERSION="^8.0"
23-
24-
sudo: false
11+
- php: "8.0"
12+
env: LARAVEL_VERSION="^9.0"
2513

2614
install:
27-
- composer require "illuminate/http:${LARAVEL_VERSION}" "illuminate/routing:${LARAVEL_VERSION}" "illuminate/support:${LARAVEL_VERSION}" --no-update --no-interaction
28-
- travis_retry composer install --no-interaction --prefer-dist
15+
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update --no-interaction
16+
- travis_retry composer update --no-interaction --prefer-dist
2917

3018
script:
3119
- if [ "$RUN_CS_FIXER" ] ; then vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no ; fi
32-
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
20+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
3321

3422
after_script:
35-
- wget https://scrutinizer-ci.com/ocular.phar
36-
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
23+
- |
24+
composer global require --no-interaction --prefer-dist scrutinizer/ocular
25+
~/.config/composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
3726
3827
branches:
3928
only: master

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
66

77
## [Unreleased]
88

9-
- Nothing
9+
### Added
10+
* Added support for Laravel 9.
11+
12+
### Removed
13+
* Removed support for Laravel <6.
14+
* Removed support for PHP <7.2.
1015

1116
## 1.4.0 - 2020-09-30
1217

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@
1717
}
1818
],
1919
"require": {
20-
"php" : ">=7.1.3",
20+
"php" : "^7.2|^8.0",
2121
"ext-json": "*",
22-
"illuminate/http": "^5.5|^6.0|^7.0|^8.0",
23-
"illuminate/routing": "^5.5|^6.0|^7.0|^8.0",
24-
"illuminate/support": "^5.5|^6.0|^7.0|^8.0"
22+
"laravel/framework": "^6.0|^7.0|^8.0|^9.0"
2523
},
2624
"require-dev": {
2725
"friendsofphp/php-cs-fixer": "^3.0",
28-
"graham-campbell/testbench": "^5.3",
29-
"phpunit/phpunit": "^6.5|^7.0|^8.0"
26+
"graham-campbell/testbench": "^5.7",
27+
"phpunit/phpunit": "^7.5|^8.5|^9.5"
3028
},
3129
"autoload": {
3230
"psr-4": {

0 commit comments

Comments
 (0)