mirror of
https://github.com/j0k3r/php-readability.git
synced 2026-09-27 06:26:17 +00:00
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 in175196d6c2but I did not manage to reproduce the original error (Entity 'nbsp' not defined). It was probably fixed byf2a43b476c. (based on commitda755013aa)
This commit is contained in:
@@ -325,7 +325,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
// dummy function to be used to the next test
|
// 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);
|
throw new \Exception($string, $code);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user