1
0
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:
Tristan Darricau
2016-04-03 16:14:50 +02:00
parent 6d2acb5ba3
commit 5754cbfec4
3 changed files with 8 additions and 4 deletions

View File

@@ -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]);