diff --git a/tests/ReadabilityTest.php b/tests/ReadabilityTest.php index 1215f17..8a29629 100644 --- a/tests/ReadabilityTest.php +++ b/tests/ReadabilityTest.php @@ -338,7 +338,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase $oldErrorReporting = error_reporting(\E_ALL); $oldDisplayErrors = ini_set('display_errors', '1'); // dummy function to be used to the next test - set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline, array $errcontext) { + set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline) { throw new \Exception($errstr, $errno); });