Skip to content

Commit f5e25f3

Browse files
committed
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 175196d. (cherry picked from commit c7b10dc)
1 parent a209429 commit f5e25f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ReadabilityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ public function error2Exception($code, $string, $file, $line, $context)
332332

333333
public function testAutoClosingIframeNotThrowingException()
334334
{
335-
$oldErrorReporting = error_reporting(\E_ALL | \E_STRICT);
335+
$oldErrorReporting = error_reporting(\E_ALL);
336336
$oldDisplayErrors = ini_set('display_errors', true);
337-
set_error_handler([$this, 'error2Exception'], \E_ALL | \E_STRICT);
337+
set_error_handler([$this, 'error2Exception']);
338338

339339
try {
340340
$data = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

0 commit comments

Comments
 (0)