We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a66487b commit 1b53985Copy full SHA for 1b53985
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