Skip to content

Commit 438ef95

Browse files
committed
Fixed issue where when a PHP error dumps an HTML stack trace in the middle of an attribute, mb_strtolower() halts proceedings due to the input being an int rather than a string, so the input is now cast.
1 parent b0ef30c commit 438ef95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmldoc/tokens/tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function minify(array $minify) : void {
251251
// lowercase attribute key
252252
if ($minify['lowercase']) {
253253
unset($attributes[$key]);
254-
$key = mb_strtolower($key);
254+
$key = mb_strtolower(strval($key));
255255
$attributes[$key] = $value;
256256
}
257257

0 commit comments

Comments
 (0)