fix PHP 8.4 compatibility problems

Signed-off-by: Maurice Preuß <envoyr@froxlor.org>
This commit is contained in:
Maurice Preuß
2026-05-10 21:14:10 +02:00
parent 563ecefe71
commit 793b91b187
3 changed files with 7 additions and 7 deletions

View File

@@ -13,9 +13,9 @@ class Databases
public function create(
string $password,
string $description = null,
?string $description = null,
bool $mail = false,
string $suffix = null
?string $suffix = null
): array {
return $this->customer->server->request('Mysqls.add', [
'customerid' => $this->customer->id,

View File

@@ -11,7 +11,7 @@ class Emails
$this->customer = $customer;
}
public function create(string $email_part, string $domain, string $description = null): array
public function create(string $email_part, string $domain, ?string $description = null): array
{
return $this->customer->server->request('Emails.add', [
'customerid' => $this->customer->id,

View File

@@ -11,7 +11,7 @@ class Ftps
$this->customer = $customer;
}
public function create(string $password, string $path = '/', string $description = null, bool $mail = false): array
public function create(string $password, string $path = '/', ?string $description = null, bool $mail = false): array
{
return $this->customer->server->request('Ftps.add', [
'customerid' => $this->customer->id,