Skip to content

Commit e75d12d

Browse files
committed
Update project requirements
This changes makes the project explicitly compatible with PHP 8.1 and enables testing with that version in the CI. Additionally, the configuration and requirements of PHPUnit are updated to be fully compatible with PHP 8.1.
1 parent d0f40ac commit e75d12d

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [ '7.3', '7.4','8.0' ]
14+
php: [ '7.3', '7.4', '8.0', '8.1' ]
1515
stability: [ prefer-lowest, prefer-stable ]
1616

1717
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"source": "https://github.com/messagebird/php-rest-api"
1717
},
1818
"require": {
19-
"php": ">=7.3|^8.0",
19+
"php": ">=7.3|~8.0.0|~8.1.0",
2020
"ext-curl": "*",
2121
"ext-json": "*",
2222
"firebase/php-jwt": "^5.4"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^8.0|^9.0",
25+
"phpunit/phpunit": "^9.5.14",
2626
"vimeo/psalm": "4.18.1"
2727
},
2828
"autoload": {

phpunit.xml.dist

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
bootstrap="autoload.php"
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
colors="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
11+
processIsolation="false"
12+
stopOnFailure="false"
13+
bootstrap="autoload.php"
1214
>
1315
<testsuites>
1416
<testsuite name="php-rest-api">
1517
<directory>./tests/</directory>
1618
</testsuite>
1719
</testsuites>
18-
<filter>
19-
<whitelist>
20+
<coverage>
21+
<include>
2022
<directory suffix=".php">./src/</directory>
21-
</whitelist>
22-
</filter>
23+
</include>
24+
</coverage>
2325
</phpunit>

0 commit comments

Comments
 (0)