From de81db802d7a154a9d101eedac1b305e043bf7b5 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Thu, 21 Nov 2024 14:42:33 +0100 Subject: [PATCH] fix php 8.4 deprecation message Otherwise you get Deprecated: Embed\html(): Implicitly marking parameter $content as nullable is deprecated, the explicit nullable type must be used instead --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index bd35a016..c3313a6a 100644 --- a/src/functions.php +++ b/src/functions.php @@ -18,7 +18,7 @@ function clean(string $value, bool $allowHTML = false): ?string return $value === '' ? null : $value; } -function html(string $tagName, array $attributes, string $content = null): string +function html(string $tagName, array $attributes, ?string $content = null): string { $html = "<{$tagName}";