From 2ae758555a9bef7508a113d7eb05ef7696b5ffa9 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 10 Oct 2024 08:42:00 +0200 Subject: [PATCH] Remove extra set_error_handler callback argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 175196d6c2e2a2cc920c5e1720639b770a2edd10 but I did not manage to reproduce the original error (Entity 'nbsp' not defined). It was probably fixed by f2a43b476c039105cd0a4370b35b0244826913fa. (based on commit da755013aadc3745ba5a13e9e77f6463ba959949) --- tests/ReadabilityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ReadabilityTest.php b/tests/ReadabilityTest.php index 542ae5c..b190a8e 100644 --- a/tests/ReadabilityTest.php +++ b/tests/ReadabilityTest.php @@ -325,7 +325,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase } // dummy function to be used to the next test - public function error2Exception($code, $string, $file, $line, $context) + public function error2Exception($code, $string, $file, $line) { throw new \Exception($string, $code); }