Skip to content

Commit 2ae7585

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. (based on commit da75501)
1 parent f5e25f3 commit 2ae7585

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
@@ -325,7 +325,7 @@ public function testTitleTooShortUseH1()
325325
}
326326

327327
// dummy function to be used to the next test
328-
public function error2Exception($code, $string, $file, $line, $context)
328+
public function error2Exception($code, $string, $file, $line)
329329
{
330330
throw new \Exception($string, $code);
331331
}

0 commit comments

Comments
 (0)