Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-05-29 04:03:44 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-02 01:05:28 +0300
commit94dbed5837afeca3121d2dfa5ab1b8f07359a8ed (patch)
tree05bf110c604f9f6303c1498bbc4128b45af70d49 /config
parentaf74cb780fea5dfbceb211fc20efad0cd146671b (diff)
Do not use function static variable in event observer defined in test.php DI config.
Diffstat (limited to 'config')
-rw-r--r--config/environment/test.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/environment/test.php b/config/environment/test.php
index 691a10f449..760a8dc05d 100644
--- a/config/environment/test.php
+++ b/config/environment/test.php
@@ -116,13 +116,11 @@ return array(
}),
array('Platform.initialized', function () {
- static $archivingTablesDeleted = false;
-
$testingEnvironment = new TestingEnvironment();
if ($testingEnvironment->deleteArchiveTables
- && !$archivingTablesDeleted
+ && !$testingEnvironment->_archivingTablesDeleted
) {
- $archivingTablesDeleted = true;
+ $testingEnvironment->_archivingTablesDeleted = true;
DbHelper::deleteArchiveTables();
}
}),