Skip to content

TECH Add support php8.4 #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Operator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Operator/Webspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down