From b2ee0906076e140a38ec5ca3b088ee1b13324b7a Mon Sep 17 00:00:00 2001 From: Nicolas Lemoine Date: Thu, 19 Dec 2024 08:57:22 +0100 Subject: [PATCH] Update extra/html-extra/HtmlExtension.php Co-authored-by: Fabien Potencier --- extra/html-extra/HtmlExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/html-extra/HtmlExtension.php b/extra/html-extra/HtmlExtension.php index 41ac0c48e0..b8f5dac50d 100644 --- a/extra/html-extra/HtmlExtension.php +++ b/extra/html-extra/HtmlExtension.php @@ -92,7 +92,7 @@ public static function htmlClasses(...$args): string { $classes = []; foreach ($args as $i => $arg) { - if (\is_string($arg) || $arg instanceof \Stringable) { + if (\is_string($arg) || $arg instanceof Markup) { $classes[] = (string) $arg; } elseif (\is_array($arg)) { foreach ($arg as $class => $condition) {