Skip to content

Commit bf52454

Browse files
committed
Use get_debug_type() everywhere
1 parent 8229e75 commit bf52454

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

HtmlExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public static function htmlClasses(...$args): string
9797
} elseif (\is_array($arg)) {
9898
foreach ($arg as $class => $condition) {
9999
if (!\is_string($class)) {
100-
throw new RuntimeError(\sprintf('The html_classes function argument %d (key %d) should be a string, got "%s".', $i, $class, \gettype($class)));
100+
throw new RuntimeError(\sprintf('The html_classes function argument %d (key %d) should be a string, got "%s".', $i, $class, get_debug_type($class)));
101101
}
102102
if (!$condition) {
103103
continue;
104104
}
105105
$classes[] = $class;
106106
}
107107
} else {
108-
throw new RuntimeError(\sprintf('The html_classes function argument %d should be either a string or an array, got "%s".', $i, \gettype($arg)));
108+
throw new RuntimeError(\sprintf('The html_classes function argument %d should be either a string or an array, got "%s".', $i, get_debug_type($arg)));
109109
}
110110
}
111111

0 commit comments

Comments
 (0)