Skip to content

Commit 2311cf6

Browse files
ausinicolas-grekas
andauthored
Coding style
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
1 parent e9f49ce commit 2311cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ private function supportsEncoding(string $encoding): bool
11701170

11711171
private function parseXhtml(string $htmlContent, string $charset = 'UTF-8'): \DOMDocument
11721172
{
1173-
if ('UTF-8' === $charset && 1 === preg_match('//u', $htmlContent)) {
1173+
if ('UTF-8' === $charset && preg_match('//u', $htmlContent)) {
11741174
$htmlContent = '<?xml encoding="UTF-8">'.$htmlContent;
11751175
} else {
11761176
$htmlContent = $this->convertToHtmlEntities($htmlContent, $charset);

0 commit comments

Comments
 (0)