From 569c02f3ae446bed13a3f3a4734fa87b02a541db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= Date: Mon, 22 Feb 2021 12:08:50 +0100 Subject: [PATCH] Fix StatsdDataFactory injection This was an obvious mistake and contradiction to what the above comment stated. Bug: T275369 Change-Id: Idf0c012151738fd842101586ab5c3e2656a86db2 --- includes/FilterRunnerFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/FilterRunnerFactory.php b/includes/FilterRunnerFactory.php index c4a961a3a..c4cd5104d 100644 --- a/includes/FilterRunnerFactory.php +++ b/includes/FilterRunnerFactory.php @@ -138,7 +138,7 @@ class FilterRunnerFactory { new EditStashCache( $this->localCache, // Bots do not use edit stashing, so avoid distorting the stats - $user->isBot() ? $this->statsdDataFactory : new NullStatsdDataFactory(), + $user->isBot() ? new NullStatsdDataFactory() : $this->statsdDataFactory, $this->varManager, $this->editStashLogger, $title,