Skip to content

Commit 2e67222

Browse files
authored
Merge pull request #3 from softonic/Laravel-8-support
Laravel 8 support
2 parents 2cf7368 + 1335f77 commit 2e67222

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ sudo: false
44

55
matrix:
66
include:
7-
- php: 7.1
8-
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
9-
- php: 7.2
10-
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
117
- php: 7.3
128
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
139
- php: master
@@ -31,4 +27,4 @@ script:
3127

3228
after_script:
3329
- if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi
34-
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi
30+
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ To run the tests, run the following command from the project folder.
4747
$ docker-compose run test
4848
```
4949

50-
To run interactively using [PsySH](http://psysh.org/):
51-
``` bash
52-
$ docker-compose run psysh
53-
```
54-
5550
License
5651
-------
5752

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
"issues": "https://github.com/softonic/laravel-request-content-decompress-middleware/issues"
1010
},
1111
"require": {
12-
"php": ">=7.1",
13-
"illuminate/http": "^5.8 || ^6.0 || ^7.0",
14-
"illuminate/contracts": "^5.8 || ^6.0 || ^7.0",
12+
"php": ">=7.3",
13+
"illuminate/http": "^7.0 || ^8.0",
14+
"illuminate/contracts": "^7.0 || ^8.0",
1515
"ext-zlib": "*"
1616
},
1717
"require-dev": {
18+
"friendsofphp/php-cs-fixer": "^2.16",
1819
"mockery/mockery": "^1.2",
19-
"phpunit/phpunit": "^7.0",
20-
"friendsofphp/php-cs-fixer": "^2.4"
20+
"phpunit/phpunit": "^9.0"
2121
},
2222
"autoload": {
2323
"psr-4": {
@@ -30,7 +30,7 @@
3030
}
3131
},
3232
"scripts": {
33-
"test": "phpunit --coverage-text; php-cs-fixer fix -v --diff --dry-run --allow-risky=yes;",
33+
"tests": "phpunit --coverage-text; php-cs-fixer fix -v --diff --dry-run --allow-risky=yes;",
3434
"phpunit": "phpunit --coverage-text",
3535
"phpcs": "php-cs-fixer fix -v --diff --dry-run --allow-risky=yes;",
3636
"fix-cs": "php-cs-fixer fix -v --diff --allow-risky=yes;"

docker-compose.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1-
version: '3.6'
1+
version: "3.7"
22

33
services:
4-
test:
4+
php:
55
volumes:
66
- ./:/app
7-
image: ricc/composer-prestissimo:latest
8-
command: composer run test
7+
image: composer:2.0
98

10-
fixcs:
9+
install:
1110
volumes:
1211
- ./:/app
13-
image: ricc/composer-prestissimo:latest
14-
command: composer run fix-cs
12+
image: composer:2.0
13+
command: composer install
14+
15+
phpunit:
16+
volumes:
17+
- ./:/app
18+
image: composer:2.0
19+
command: composer phpunit
1520

16-
psysh:
21+
test:
22+
volumes:
23+
- ./:/app
24+
image: composer:2.0
25+
command: composer run tests
26+
27+
fixcs:
1728
volumes:
1829
- ./:/app
19-
image: ricc/psysh:latest
30+
image: composer:2.0
31+
command: composer run fix-cs

0 commit comments

Comments
 (0)