From 793b91b1878f7cafbd369baa7c9f65c768f4d4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Sun, 10 May 2026 21:14:10 +0200 Subject: [PATCH] fix PHP 8.4 compatibility problems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maurice Preuß --- src/Databases.php | 6 +++--- src/Emails.php | 4 ++-- src/Ftps.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Databases.php b/src/Databases.php index d755c3b..bad5e59 100644 --- a/src/Databases.php +++ b/src/Databases.php @@ -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, @@ -32,4 +32,4 @@ class Databases 'customerid' => $this->customer->id, ]); } -} \ No newline at end of file +} diff --git a/src/Emails.php b/src/Emails.php index 1ffa39c..078c679 100644 --- a/src/Emails.php +++ b/src/Emails.php @@ -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, @@ -27,4 +27,4 @@ class Emails 'customerid' => $this->customer->id, ]); } -} \ No newline at end of file +} diff --git a/src/Ftps.php b/src/Ftps.php index 5c5a197..bafc580 100644 --- a/src/Ftps.php +++ b/src/Ftps.php @@ -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, @@ -28,4 +28,4 @@ class Ftps 'customerid' => $this->customer->id, ]); } -} \ No newline at end of file +}