aboutsummaryrefslogtreecommitdiffstats
path: root/includes/actions/RollbackAction.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2018-11-17 00:30:28 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2018-12-01 23:11:16 +0100
commitefe5761c93e0987d4cb76f7aa653dabd1fbbb395 (patch)
tree6573aabe8998f81f7a28b429dcad35c7b1e83667 /includes/actions/RollbackAction.php
parent22d2f1c10244615cfb28dcd40e2c22950e069b05 (diff)
downloadmediawikicore-efe5761c93e0987d4cb76f7aa653dabd1fbbb395.tar.gz
mediawikicore-efe5761c93e0987d4cb76f7aa653dabd1fbbb395.zip
build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Avoid use of __METHOD__ magic constant in closure Change-Id: I28d519530ca2fcde026a6cbb419848098d4617ca
Diffstat (limited to 'includes/actions/RollbackAction.php')
-rw-r--r--includes/actions/RollbackAction.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php
index dec3e6153594..3e6d4028a451 100644
--- a/includes/actions/RollbackAction.php
+++ b/includes/actions/RollbackAction.php
@@ -70,11 +70,12 @@ class RollbackAction extends FormlessAction {
}
// @TODO: remove this hack once rollback uses POST (T88044)
+ $fname = __METHOD__;
$trxLimits = $this->context->getConfig()->get( 'TrxProfilerLimits' );
$trxProfiler = Profiler::instance()->getTransactionProfiler();
- $trxProfiler->setExpectations( $trxLimits['POST'], __METHOD__ );
- DeferredUpdates::addCallableUpdate( function () use ( $trxProfiler, $trxLimits ) {
- $trxProfiler->setExpectations( $trxLimits['PostSend-POST'], __METHOD__ );
+ $trxProfiler->setExpectations( $trxLimits['POST'], $fname );
+ DeferredUpdates::addCallableUpdate( function () use ( $trxProfiler, $trxLimits, $fname ) {
+ $trxProfiler->setExpectations( $trxLimits['PostSend-POST'], $fname );
} );
$data = null;