Skip to content

Commit 062420d

Browse files
authored
Merge pull request #155 from ovh/php8.4
Php8.4
2 parents 3bebadd + 1aa0a1e commit 062420d

File tree

4 files changed

+37
-32
lines changed

4 files changed

+37
-32
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
php-version: [ '7.4', '8.0', '8.1', '8.2' ]
27+
php-version: [ '8.1', '8.2', '8.3', '8.4' ]
2828
steps:
2929
- uses: "actions/checkout@v2"
3030
- uses: "shivammathur/setup-php@v2"
@@ -81,7 +81,7 @@ jobs:
8181
max-parallel: 1
8282
fail-fast: false
8383
matrix:
84-
php-version: [ '7.4', '8.0', '8.1', '8.2' ]
84+
php-version: [ '8.1', '8.2', '8.3', '8.4' ]
8585
steps:
8686
- uses: "actions/checkout@v2"
8787
- uses: "shivammathur/setup-php@v2"
@@ -94,4 +94,4 @@ jobs:
9494
run: "mkdir -p build/logs"
9595
- uses: "ramsey/composer-install@v2"
9696
- name: "Run unit tests"
97-
run: "composer phpunit"
97+
run: "composer phpunit -- --no-coverage"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require-dev": {
2626
"php-parallel-lint/php-parallel-lint": "^1.3.1",
2727
"phpdocumentor/shim": "^3",
28-
"phpunit/phpunit": "^9.6",
28+
"phpunit/phpunit": "^10.5",
2929
"squizlabs/php_codesniffer": "^3.6"
3030
},
3131
"autoload": {

phpunit.xml.dist

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
35
bootstrap="./vendor/autoload.php"
46
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertWarningsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertDeprecationsToExceptions="true"
9-
>
10-
<testsuites>
11-
<testsuite name="all">
12-
<directory>./tests</directory>
13-
</testsuite>
14-
</testsuites>
15-
16-
<coverage>
17-
<include>
18-
<directory suffix=".php">src/</directory>
19-
</include>
20-
21-
<report>
22-
<clover outputFile="build/logs/clover.xml" />
23-
<html outputDirectory="build/coverage" />
24-
<text outputFile="php://stdout" />
25-
</report>
26-
</coverage>
27-
28-
<logging>
29-
<junit outputFile="build/report.junit.xml"/>
30-
</logging>
31-
</phpunit>
7+
cacheDirectory=".phpunit.cache"
8+
failOnEmptyTestSuite="true"
9+
failOnWarning="true"
10+
failOnRisky="true"
11+
failOnDeprecation="true"
12+
failOnPhpunitDeprecation="true"
13+
failOnNotice="true"
14+
failOnIncomplete="true"
15+
>
16+
<testsuites>
17+
<testsuite name="all">
18+
<directory>./tests</directory>
19+
</testsuite>
20+
</testsuites>
21+
<coverage>
22+
<report>
23+
<clover outputFile="build/logs/clover.xml"/>
24+
<html outputDirectory="build/coverage"/>
25+
<text outputFile="php://stdout"/>
26+
</report>
27+
</coverage>
28+
<logging>
29+
<junit outputFile="build/report.junit.xml"/>
30+
</logging>
31+
<source>
32+
<include>
33+
<directory suffix=".php">src/</directory>
34+
</include>
35+
</source>
36+
</phpunit>

src/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function __construct(
142142
$application_secret,
143143
$api_endpoint,
144144
$consumer_key = null,
145-
Client $http_client = null
145+
?Client $http_client = null
146146
) {
147147
if (!isset($api_endpoint)) {
148148
throw new Exceptions\InvalidParameterException("Endpoint parameter is empty");

0 commit comments

Comments
 (0)