Skip to content

Commit 5ab677d

Browse files
Merge branch '6.4' into 7.0
* 6.4: More short closures + isset instead of null checks + etc.
2 parents 80faaff + bbd96a9 commit 5ab677d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ private function parseXhtml(string $htmlContent, string $charset = 'UTF-8'): \DO
10841084
*/
10851085
private function convertToHtmlEntities(string $htmlContent, string $charset = 'UTF-8'): string
10861086
{
1087-
set_error_handler(function () { throw new \Exception(); });
1087+
set_error_handler(static fn () => throw new \Exception());
10881088

10891089
try {
10901090
return mb_encode_numericentity($htmlContent, [0x80, 0x10FFFF, 0, 0x1FFFFF], $charset);

0 commit comments

Comments
 (0)