aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2017-05-09 02:13:24 +0700
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 13:56:04 +0100
commit11e09f1b3c943695ff688f7a86fdebff88649cef (patch)
tree5f154ee277e82e0a354cc2e3c3ed111418dd66f9
parent6e6195c303c23e66419ffed9fbc3b19856614afc (diff)
downloadforums-11e09f1b3c943695ff688f7a86fdebff88649cef.tar
forums-11e09f1b3c943695ff688f7a86fdebff88649cef.tar.gz
forums-11e09f1b3c943695ff688f7a86fdebff88649cef.tar.bz2
forums-11e09f1b3c943695ff688f7a86fdebff88649cef.tar.xz
forums-11e09f1b3c943695ff688f7a86fdebff88649cef.zip
[ticket/14972] Fix test_collection_with_mask test
In PHP 7.2, the severity of the message “Use of undefined constant” was raised from E_NOTICE to E_WARNING, so calling $array[ITEM] causes warning caught by error collector. Use undefined offset notice to get an empty message as such. PHPBB3-14972
-rw-r--r--tests/error_collector_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/error_collector_test.php b/tests/error_collector_test.php
index 273284c8fc..8ed89bbe52 100644
--- a/tests/error_collector_test.php
+++ b/tests/error_collector_test.php
@@ -52,8 +52,8 @@ class phpbb_error_collector_test extends phpbb_test_case
1/0; $line = __LINE__;
// Cause a notice
- $array = array('ITEM' => 'value');
- $value = $array[ITEM]; $line2 = __LINE__;
+ $array = array(0 => 'value');
+ $value = $array[1]; $line2 = __LINE__;
$collector->uninstall();