summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/src/Validation/Validators/MediaWikiPluralValidator.php')
-rw-r--r--MLEB/Translate/src/Validation/Validators/MediaWikiPluralValidator.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/MLEB/Translate/src/Validation/Validators/MediaWikiPluralValidator.php b/MLEB/Translate/src/Validation/Validators/MediaWikiPluralValidator.php
index b7606d8f..678f5042 100644
--- a/MLEB/Translate/src/Validation/Validators/MediaWikiPluralValidator.php
+++ b/MLEB/Translate/src/Validation/Validators/MediaWikiPluralValidator.php
@@ -98,7 +98,7 @@ class MediaWikiPluralValidator implements MessageValidator {
// Stores the forms from plural invocations
$plurals = [];
- $cb = function ( $parser, $frame, $args ) use ( &$plurals ) {
+ $cb = static function ( $parser, $frame, $args ) use ( &$plurals ) {
$forms = [];
foreach ( $args as $index => $form ) {
@@ -143,5 +143,3 @@ class MediaWikiPluralValidator implements MessageValidator {
return array_values( $forms );
}
}
-
-class_alias( MediaWikiPluralValidator::class, '\MediaWiki\Extensions\Translate\MediaWikiPluralValidator' );