Skip to content

Commit bbd96a9

Browse files
More short closures + isset instead of null checks + etc.
1 parent 1040c7c commit bbd96a9

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
@@ -1110,7 +1110,7 @@ private function parseXhtml(string $htmlContent, string $charset = 'UTF-8'): \DO
11101110
*/
11111111
private function convertToHtmlEntities(string $htmlContent, string $charset = 'UTF-8'): string
11121112
{
1113-
set_error_handler(function () { throw new \Exception(); });
1113+
set_error_handler(static fn () => throw new \Exception());
11141114

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

0 commit comments

Comments
 (0)