Skip to content

Commit 781755b

Browse files
authored
Add Php8 support (mghoneimy#46)
Add php 8 support
1 parent 707f2f4 commit 781755b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ php:
44
- '7.2'
55
- '7.3'
66
- '7.4'
7+
- '8.0'
8+
jobs:
9+
allow_failures:
10+
- php: 8.0
711

812
before_script:
913
- composer install
1014

11-
script: vendor/phpunit/phpunit/phpunit tests/ --whitelist src/ --coverage-clover build/coverage/xml
15+
script: composer run test
1216

1317
after_script:
1418
- php vendor/bin/codacycoverage clover build/coverage/xml

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
},
3131
"require": {
32-
"php": "^7.1",
32+
"php": "^7.1 || ^8.0",
3333
"ext-json": "*",
3434
"psr/http-message": "^1.0",
3535
"psr/http-client": "^1.0",
@@ -39,6 +39,9 @@
3939
"phpunit/phpunit": "^7.5|^8.0",
4040
"codacy/coverage": "^1.4"
4141
},
42+
"scripts": {
43+
"test": "phpunit tests/ --whitelist src/ --coverage-clover build/coverage/xml"
44+
},
4245
"suggest": {
4346
"gmostafa/php-graphql-oqm": "To have object-to-query mapping support"
4447
}

0 commit comments

Comments
 (0)