From f5e25f3c9c8406b32510a785647e194ea1b0e43d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 10 Oct 2024 01:25:41 +0200 Subject: [PATCH] Avoid E_STRICT constant It will be deprecated in PHP 8.4 and it is meaningless nowadays anyway: https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant The use of the constant was introduced in 175196d6c2e2a2cc920c5e1720639b770a2edd10. (cherry picked from commit c7b10dcc45b3729d5a2d6469cb2b26495b45edd6) --- tests/ReadabilityTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ReadabilityTest.php b/tests/ReadabilityTest.php index 56f04da..542ae5c 100644 --- a/tests/ReadabilityTest.php +++ b/tests/ReadabilityTest.php @@ -332,9 +332,9 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testAutoClosingIframeNotThrowingException() { - $oldErrorReporting = error_reporting(\E_ALL | \E_STRICT); + $oldErrorReporting = error_reporting(\E_ALL); $oldDisplayErrors = ini_set('display_errors', true); - set_error_handler([$this, 'error2Exception'], \E_ALL | \E_STRICT); + set_error_handler([$this, 'error2Exception']); try { $data = '