Skip to content

Commit 39d226e

Browse files
committed
Fixed PHP 8.4 deprecations
1 parent bd65bfa commit 39d226e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
- Added Easy Coding Standard.
1010

11+
### Fixed
12+
13+
- Fixed PHP 8.4 deprecations.
14+
1115
## [1.0.3] - 2023-09-15
1216

1317
### Fixed

ecs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
false, // php81Migration
4646
false, // php82Migration
4747
false, // php83Migration
48-
false, // php84Migration
48+
true, // php84Migration
4949
false, // phpunit30MigrationRisky
5050
false, // phpunit32MigrationRisky
5151
false, // phpunit35MigrationRisky

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class Client implements ClientInterface
4747
* @param string $apiKey
4848
* @param GuzzleClientInterface|null $guzzleClient
4949
*/
50-
public function __construct($apiUrl, $apiKey, GuzzleClientInterface $guzzleClient = null)
50+
public function __construct($apiUrl, $apiKey, ?GuzzleClientInterface $guzzleClient = null)
5151
{
5252
$this->apiUrl = $apiUrl . '/api/3/';
5353
$this->apiKey = $apiKey;
@@ -101,7 +101,7 @@ public function testCredentials()
101101
* @return Result
102102
* @throws GuzzleException
103103
*/
104-
private function sendRequest($method, $path, array $data = null)
104+
private function sendRequest($method, $path, ?array $data = null)
105105
{
106106
$uri = $this->apiUrl . $path;
107107

0 commit comments

Comments
 (0)