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
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-09-03 04:51:18 +0300
committerGitHub <noreply@github.com>2020-09-03 04:51:18 +0300
commit3565da78bff718f201247fc2f692c0be29220fde (patch)
treee8268373b284c293c307935a8bfa20d5cd920b48 /tests/PHPUnit/Fixtures
parent21cafb0533d07acbe0a574e23bd972b20d72aa90 (diff)
Updates php-di to 6.2.1 (#16311)
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r--tests/PHPUnit/Fixtures/UITestFixture.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php
index b75ebe079b..297fcaaa5a 100644
--- a/tests/PHPUnit/Fixtures/UITestFixture.php
+++ b/tests/PHPUnit/Fixtures/UITestFixture.php
@@ -467,7 +467,7 @@ class UITestFixture extends SqlDump
return [
'Tests.now' => \DI\decorate(function(){ return Option::get("Tests.forcedNowTimestamp"); }),
'observers.global' => \DI\add([
- ['Report.addReports', function (&$reports) {
+ ['Report.addReports', \DI\value(function (&$reports) {
$report = new XssReport();
$report->initForXss('forTwig');
$reports[] = $report;
@@ -475,11 +475,11 @@ class UITestFixture extends SqlDump
$report = new XssReport();
$report->initForXss('forAngular');
$reports[] = $report;
- }],
- ['Dimension.addDimensions', function (&$instances) {
+ })],
+ ['Dimension.addDimensions', \DI\value(function (&$instances) {
$instances[] = new XssDimension();
- }],
- ['API.Request.intercept', function (&$result, $finalParameters, $pluginName, $methodName) {
+ })],
+ ['API.Request.intercept', \DI\value(function (&$result, $finalParameters, $pluginName, $methodName) {
if ($pluginName != 'ExampleAPI' && $methodName != 'xssReportforTwig' && $methodName != 'xssReportforAngular') {
return;
}
@@ -498,7 +498,7 @@ class UITestFixture extends SqlDump
'nb_visits' => 15,
]);
$result = $dataTable;
- }],
+ })],
]),
Proxy::class => \DI\get(CustomApiProxy::class),
'log.handlers' => \DI\decorate(function ($previous, ContainerInterface $c) {