Skip to content

Commit 6626aaf

Browse files
Merge branch '6.0' into 6.1
* 6.0: [6.0] cs fixes [5.4] cs fixes [5.3] cs fixes [Cache] Fix saving items with no expiration through ProxyAdapter CS fixes fix merge Remove pointless assignment [HttpClient] Fix tracing requests made after calling withOptions() [Cache] disable lock on CLI Revert "feature #41989 [Cache] make `LockRegistry` use semaphores when possible (nicolas-grekas)" [HttpKernel] fix how configuring log-level and status-code by exception works [VarDumper] add more "transient-on-macos" groups
2 parents 304c29d + c95b4ad commit 6626aaf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Crawler.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,6 @@ public function outerHtml(): string
629629
*
630630
* Since an XPath expression might evaluate to either a simple type or a \DOMNodeList,
631631
* this method will return either an array of simple types or a new Crawler instance.
632-
*
633-
* @return array|Crawler
634632
*/
635633
public function evaluate(string $xpath): array|Crawler
636634
{
@@ -1085,11 +1083,11 @@ private function convertToHtmlEntities(string $htmlContent, string $charset = 'U
10851083

10861084
try {
10871085
return mb_convert_encoding($htmlContent, 'HTML-ENTITIES', $charset);
1088-
} catch (\Exception | \ValueError $e) {
1086+
} catch (\Exception|\ValueError $e) {
10891087
try {
10901088
$htmlContent = iconv($charset, 'UTF-8', $htmlContent);
10911089
$htmlContent = mb_convert_encoding($htmlContent, 'HTML-ENTITIES', 'UTF-8');
1092-
} catch (\Exception | \ValueError $e) {
1090+
} catch (\Exception|\ValueError $e) {
10931091
}
10941092

10951093
return $htmlContent;

0 commit comments

Comments
 (0)