mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13616] Fix CS + constant in the core extension
PHPBB3-13616
This commit is contained in:
@@ -261,7 +261,8 @@ class phpbb_ui_test_case extends phpbb_test_case
|
||||
|
||||
$blacklist = ['phpbb_class_loader_mock', 'phpbb_class_loader_ext', 'phpbb_class_loader'];
|
||||
|
||||
foreach (array_keys($GLOBALS) as $key) {
|
||||
foreach (array_keys($GLOBALS) as $key)
|
||||
{
|
||||
if (is_object($GLOBALS[$key]) && !in_array($key, $blacklist, true))
|
||||
{
|
||||
unset($GLOBALS[$key]);
|
||||
|
Reference in New Issue
Block a user