diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 1611c6b..35fb499 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- php-version: [ '7.4', '8.0', '8.1', '8.2' ]
+ php-version: [ '8.1', '8.2', '8.3', '8.4' ]
steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
@@ -81,7 +81,7 @@ jobs:
max-parallel: 1
fail-fast: false
matrix:
- php-version: [ '7.4', '8.0', '8.1', '8.2' ]
+ php-version: [ '8.1', '8.2', '8.3', '8.4' ]
steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
@@ -94,4 +94,4 @@ jobs:
run: "mkdir -p build/logs"
- uses: "ramsey/composer-install@v2"
- name: "Run unit tests"
- run: "composer phpunit"
+ run: "composer phpunit -- --no-coverage"
diff --git a/composer.json b/composer.json
index c9f1454..b264198 100644
--- a/composer.json
+++ b/composer.json
@@ -25,7 +25,7 @@
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpdocumentor/shim": "^3",
- "phpunit/phpunit": "^9.6",
+ "phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 6e5fc99..9150f72 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -1,31 +1,36 @@
-
-
- ./tests
-
-
-
-
-
- src/
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ cacheDirectory=".phpunit.cache"
+ failOnEmptyTestSuite="true"
+ failOnWarning="true"
+ failOnRisky="true"
+ failOnDeprecation="true"
+ failOnPhpunitDeprecation="true"
+ failOnNotice="true"
+ failOnIncomplete="true"
+ >
+
+
+ ./tests
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ src/
+
+
+
diff --git a/src/Api.php b/src/Api.php
index bfac0f6..c4dc928 100644
--- a/src/Api.php
+++ b/src/Api.php
@@ -142,7 +142,7 @@ public function __construct(
$application_secret,
$api_endpoint,
$consumer_key = null,
- Client $http_client = null
+ ?Client $http_client = null
) {
if (!isset($api_endpoint)) {
throw new Exceptions\InvalidParameterException("Endpoint parameter is empty");