From cf0f30da26cc70b4b7034ea7f9f60216ac56d169 Mon Sep 17 00:00:00 2001 From: Aleksei Fedorov Date: Mon, 10 Feb 2025 11:15:47 +0200 Subject: [PATCH] TECH Add support php8.4 --- src/Api/Client.php | 2 +- src/Api/Operator.php | 2 +- src/Api/Operator/Webspace.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/Client.php b/src/Api/Client.php index 7895ab0e..12d19b6c 100644 --- a/src/Api/Client.php +++ b/src/Api/Client.php @@ -92,7 +92,7 @@ public function setVersion(string $version): void * * @param callable|null $function */ - public function setVerifyResponse(callable $function = null): void + public function setVerifyResponse(?callable $function = null): void { $this->verifyResponseCallback = $function; } diff --git a/src/Api/Operator.php b/src/Api/Operator.php index a694d105..d53bb103 100644 --- a/src/Api/Operator.php +++ b/src/Api/Operator.php @@ -71,7 +71,7 @@ protected function deleteBy(string $field, $value, string $deleteMethodName = 'd * * @return array */ - protected function getItems($structClass, $infoTag, $field = null, $value = null, callable $filter = null): array + protected function getItems($structClass, $infoTag, $field = null, $value = null, ?callable $filter = null): array { $packet = $this->client->getPacket(); $getTag = $packet->addChild($this->wrapperTag)->addChild('get'); diff --git a/src/Api/Operator/Webspace.php b/src/Api/Operator/Webspace.php index b1181106..a555b2c4 100644 --- a/src/Api/Operator/Webspace.php +++ b/src/Api/Operator/Webspace.php @@ -68,7 +68,7 @@ public function getLimits(string $field, $value): Struct\Limits * * @return Struct\Info */ - public function create(array $properties, array $hostingProperties = null, string $planName = ''): Struct\Info + public function create(array $properties, ?array $hostingProperties = null, string $planName = ''): Struct\Info { $packet = $this->client->getPacket(); $info = $packet->addChild($this->wrapperTag)->addChild('add');