diff options
Diffstat (limited to 'MLEB/Translate/src/MessageSync/MessageSourceChange.php')
-rw-r--r-- | MLEB/Translate/src/MessageSync/MessageSourceChange.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/MLEB/Translate/src/MessageSync/MessageSourceChange.php b/MLEB/Translate/src/MessageSync/MessageSourceChange.php index c5b69784..ee16f4a4 100644 --- a/MLEB/Translate/src/MessageSync/MessageSourceChange.php +++ b/MLEB/Translate/src/MessageSync/MessageSourceChange.php @@ -373,7 +373,7 @@ class MessageSourceChange { } else { $this->changes[$language][$type] = array_filter( $this->changes[$language][$type], - function ( $change ) use ( $keysToRemove ) { + static function ( $change ) use ( $keysToRemove ) { return !in_array( $change['key'], $keysToRemove, true ); } ); @@ -551,5 +551,3 @@ class MessageSourceChange { return $similarity === 1; } } - -class_alias( MessageSourceChange::class, '\MediaWiki\Extensions\Translate\MessageSourceChange' ); |