aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ActorMigration.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ActorMigration.php')
-rw-r--r--includes/ActorMigration.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/ActorMigration.php b/includes/ActorMigration.php
index 91b6ee35f91b..1a4bd581380e 100644
--- a/includes/ActorMigration.php
+++ b/includes/ActorMigration.php
@@ -365,7 +365,7 @@ class ActorMigration {
if ( isset( self::$tempTables[$key] ) ) {
$func = __METHOD__;
- $callback = function ( $pk, array $extra ) use ( $dbw, $key, $id, $func ) {
+ $callback = static function ( $pk, array $extra ) use ( $dbw, $key, $id, $func ) {
$t = self::$tempTables[$key];
$set = [ $t['field'] => $id ];
foreach ( $t['extra'] as $to => $from ) {
@@ -384,12 +384,12 @@ class ActorMigration {
};
} else {
$ret[$actor] = $id;
- $callback = function ( $pk, array $extra ) {
+ $callback = static function ( $pk, array $extra ) {
};
}
} elseif ( isset( self::$tempTables[$key] ) ) {
$func = __METHOD__;
- $callback = function ( $pk, array $extra ) use ( $key, $func ) {
+ $callback = static function ( $pk, array $extra ) use ( $key, $func ) {
$t = self::$tempTables[$key];
foreach ( $t['extra'] as $to => $from ) {
if ( !array_key_exists( $from, $extra ) ) {
@@ -398,7 +398,7 @@ class ActorMigration {
}
};
} else {
- $callback = function ( $pk, array $extra ) {
+ $callback = static function ( $pk, array $extra ) {
};
}
return [ $ret, $callback ];