mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[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
This commit is contained in:
parent
6e6195c303
commit
11e09f1b3c
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ class phpbb_error_collector_test extends phpbb_test_case
|
||||||
1/0; $line = __LINE__;
|
1/0; $line = __LINE__;
|
||||||
|
|
||||||
// Cause a notice
|
// Cause a notice
|
||||||
$array = array('ITEM' => 'value');
|
$array = array(0 => 'value');
|
||||||
$value = $array[ITEM]; $line2 = __LINE__;
|
$value = $array[1]; $line2 = __LINE__;
|
||||||
|
|
||||||
$collector->uninstall();
|
$collector->uninstall();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue