Skip to content

Commit

Permalink
Update extra/html-extra/HtmlExtension.php
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Potencier <[email protected]>
  • Loading branch information
nlemoine and fabpot authored Dec 19, 2024
1 parent 511d823 commit b2ee090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/html-extra/HtmlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b2ee090

Please sign in to comment.