Skip to content

Commit cf2d4a3

Browse files
feat: support latest php versions (#45)
1 parent 804ee56 commit cf2d4a3

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
language: php
22

3-
php:
4-
- '7.0'
5-
- '7.2'
3+
matrix:
4+
include:
5+
- php: 7.1
6+
- php: 7.2
7+
- php: 7.3
8+
- php: 7.4
9+
- php: 8.0
10+
- php: nightly
11+
allow_failures:
12+
- php: nightly
13+
fast_finish: true
614

715
env:
816
global:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
}
2121
},
2222
"require": {
23-
"php": ">=7.0",
23+
"php": "^7.1 || ^8.0",
2424
"netresearch/jsonmapper": "^1.0 || ^2.0",
2525
"phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^6.0.0"
28+
"phpunit/phpunit": "^7.0 || ^8.0"
2929
},
3030
"minimum-stability": "dev",
3131
"prefer-stable": true

tests/DispatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DispatcherTest extends TestCase
1313
private $callsOfNestedTarget;
1414
private $dispatcher;
1515

16-
public function setUp()
16+
public function setUp(): void
1717
{
1818
$this->calls = [];
1919
$this->callsOfNestedTarget = [];

0 commit comments

Comments
 (0)