Skip to content

Commit b63aa49

Browse files
Merge pull request #174 from plesk/tech-ayfedorov-update-to-PHP84
TECH Add PHP 8.4 support
2 parents c424468 + cf0f30d commit b63aa49

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Api/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function setVersion(string $version): void
9292
*
9393
* @param callable|null $function
9494
*/
95-
public function setVerifyResponse(callable $function = null): void
95+
public function setVerifyResponse(?callable $function = null): void
9696
{
9797
$this->verifyResponseCallback = $function;
9898
}

src/Api/Operator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function deleteBy(string $field, $value, string $deleteMethodName = 'd
7171
*
7272
* @return array
7373
*/
74-
protected function getItems($structClass, $infoTag, $field = null, $value = null, callable $filter = null): array
74+
protected function getItems($structClass, $infoTag, $field = null, $value = null, ?callable $filter = null): array
7575
{
7676
$packet = $this->client->getPacket();
7777
$getTag = $packet->addChild($this->wrapperTag)->addChild('get');

src/Api/Operator/Webspace.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getLimits(string $field, $value): Struct\Limits
6868
*
6969
* @return Struct\Info
7070
*/
71-
public function create(array $properties, array $hostingProperties = null, string $planName = ''): Struct\Info
71+
public function create(array $properties, ?array $hostingProperties = null, string $planName = ''): Struct\Info
7272
{
7373
$packet = $this->client->getPacket();
7474
$info = $packet->addChild($this->wrapperTag)->addChild('add');

0 commit comments

Comments
 (0)