Skip to content

Commit cedf91d

Browse files
committed
fix deprecation messages
1 parent 939ebb7 commit cedf91d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/API/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function crypto(): ?array
5353
*
5454
* @return array
5555
*/
56-
public function fees(int $days = null): ?array
56+
public function fees(?int $days = null): ?array
5757
{
5858
return $this->get('node/fees', ['days' => $days]);
5959
}

src/ArkClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ArkClient
4646
*
4747
* @throws InvalidArgumentException if $hostOrHosts is an array and does not have the required format
4848
*/
49-
public function __construct(array|string $hostOrHosts, array $clientConfig = [], HandlerStack $handler = null)
49+
public function __construct(array|string $hostOrHosts, array $clientConfig = [], ?HandlerStack $handler = null)
5050
{
5151
$this->validateHosts($hostOrHosts);
5252

src/ClientManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function connect(string $host, string $name = 'main'): ArkClient
4949
*
5050
* @param string|null $name
5151
*/
52-
public function disconnect(string $name = null): void
52+
public function disconnect(?string $name = null): void
5353
{
5454
$name = $name ?? $this->getDefaultClient();
5555

@@ -63,7 +63,7 @@ public function disconnect(string $name = null): void
6363
*
6464
* @return ArkClient
6565
*/
66-
public function client(string $name = null): ArkClient
66+
public function client(?string $name = null): ArkClient
6767
{
6868
$name = $name ?? $this->getDefaultClient();
6969

0 commit comments

Comments
 (0)