We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5d3ae commit ff5d41aCopy full SHA for ff5d41a
src/Document.php
@@ -71,7 +71,7 @@ private function getValidEncoding(?string $encoding): ?string
71
} else {
72
// PHP 8.0+: ValueError exception is thrown for invalid/empty encoding
73
try {
74
- mb_encoding_aliases($encoding ?? '');
+ $aliases = mb_encoding_aliases($encoding ?? '');
75
// If mb_encoding_aliases succeeds, return the input value as is. Some encodings do not have aliases.
76
return $encoding;
77
} catch (\ValueError $exception) {
0 commit comments