Skip to content

Commit 072921b

Browse files
committed
Fix CS
1 parent f7d54d4 commit 072921b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HtmlExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function dataUri(string $data, ?string $mime = null, array $parameters =
7777
$repr .= ';'.$key.'='.rawurlencode($value);
7878
}
7979

80-
if (0 === strpos($mime, 'text/')) {
80+
if (str_starts_with($mime, 'text/')) {
8181
$repr .= ','.rawurlencode($data);
8282
} else {
8383
$repr .= ';base64,'.base64_encode($data);

0 commit comments

Comments
 (0)