mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01: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
221004b21b
commit
0552666cf5
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user