Skip to content

Commit c4f9c74

Browse files
authored
Merge pull request #1 from cgauge/php8
Upgrade to php 8
2 parents 32d173f + 73a2bda commit c4f9c74

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

.travis.yml

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

33
php:
4-
- 7.2
5-
- 7.3
6-
- 7.4snapshot
7-
8-
matrix:
9-
allow_failures:
10-
- php: 7.4snapshot
4+
- 7.4
5+
- 8.0snapshot
116

127
before_script:
138
- composer selfupdate

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.2"
16+
"php": ">=7.4"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^8.0",
20-
"doctrine/coding-standard": "^6.0",
21-
"phpstan/phpstan": "^0.11.8"
19+
"phpunit/phpunit": "^9.5",
20+
"doctrine/coding-standard": "^8.0",
21+
"phpstan/phpstan": "^0.12.64"
2222
},
2323
"autoload": {
2424
"psr-4": {

phpunit.xml.dist

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
34
backupStaticAttributes="false"
45
bootstrap="vendor/autoload.php"
56
colors="true"
67
convertErrorsToExceptions="true"
78
convertNoticesToExceptions="true"
89
convertWarningsToExceptions="true"
910
processIsolation="false"
10-
stopOnFailure="false">
11-
<testsuites>
12-
<testsuite name="Unit Tests">
13-
<directory suffix="Test.php">./tests</directory>
14-
</testsuite>
15-
</testsuites>
16-
<filter>
17-
<whitelist processUncoveredFilesFromWhitelist="true">
18-
<directory suffix=".php">./src</directory>
19-
</whitelist>
20-
</filter>
11+
stopOnFailure="false"
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
13+
<coverage processUncoveredFiles="true">
14+
<include>
15+
<directory suffix=".php">./src</directory>
16+
</include>
17+
</coverage>
18+
<testsuites>
19+
<testsuite name="Unit Tests">
20+
<directory suffix="Test.php">./tests</directory>
21+
</testsuite>
22+
</testsuites>
2123
</phpunit>

0 commit comments

Comments
 (0)