Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  More short closures + isset instead of null checks + etc.
  • Loading branch information
nicolas-grekas committed Jul 27, 2023
2 parents 80faaff + bbd96a9 commit 5ab677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ private function parseXhtml(string $htmlContent, string $charset = 'UTF-8'): \DO
*/
private function convertToHtmlEntities(string $htmlContent, string $charset = 'UTF-8'): string
{
set_error_handler(function () { throw new \Exception(); });
set_error_handler(static fn () => throw new \Exception());

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

0 comments on commit 5ab677d

Please sign in to comment.