Skip to content

Commit da75501

Browse files
committed
Remove extra set_error_handler callback argument
It is unused and would cause an error on PHP ≥ 8.0: https://www.php.net/manual/en/function.set-error-handler.php#refsect1-function.set-error-handler-parameters Not sure if the handler is even necessary – it was introduced in 175196d but I did not manage to reproduce the original error (Entity 'nbsp' not defined). It was probably fixed by f2a43b4.
1 parent 5b9551d commit da75501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ReadabilityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function testAutoClosingIframeNotThrowingException(): void
338338
$oldErrorReporting = error_reporting(\E_ALL);
339339
$oldDisplayErrors = ini_set('display_errors', '1');
340340
// dummy function to be used to the next test
341-
set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline, array $errcontext) {
341+
set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline) {
342342
throw new \Exception($errstr, $errno);
343343
});
344344

0 commit comments

Comments
 (0)