We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a66487b + 1b53985 commit 56efec6Copy full SHA for 56efec6
src/Document.php
@@ -32,7 +32,7 @@ public function __construct(Extractor $extractor)
32
if (!empty($match[1])) {
33
$encoding = trim($match[1], ',');
34
try {
35
- $ret = mb_encoding_aliases($encoding);
+ $ret = mb_encoding_aliases($encoding ?? '');
36
if ($ret === false) {
37
$encoding = null;
38
}
@@ -46,7 +46,7 @@ public function __construct(Extractor $extractor)
46
47
48
49
50
51
52
0 commit comments