From e5ee26ca5f8172a631102f42d6e5ef23a7f484c3 Mon Sep 17 00:00:00 2001 From: Ruediger Schultz Date: Wed, 17 Sep 2025 16:31:21 +0200 Subject: [PATCH] PHP8.4 deprecation handling PHP8.4 issues a new deprecation notice: Deprecated: Analogic\ACME\Lescript::__construct(): Implicitly marking parameter $client as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/_letsencrypt.v02/Lescript.php on line 38 this can be solved following this blogpost: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated --- Lescript.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lescript.php b/Lescript.php index b81d01f..9ffad9f 100644 --- a/Lescript.php +++ b/Lescript.php @@ -31,7 +31,7 @@ class Lescript protected $urlNewNonce = ''; protected $urlNewOrder = ''; - public function __construct($certificatesDir, $webRootDir, $logger = null, ClientInterface $client = null) + public function __construct($certificatesDir, $webRootDir, $logger = null, ClientInterface|null $client = null) { $this->certificatesDir = $certificatesDir; $this->webRootDir = $webRootDir;