summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/insertables/TranslatablePageInsertablesSuggester.php')
-rw-r--r--MLEB/Translate/insertables/TranslatablePageInsertablesSuggester.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/MLEB/Translate/insertables/TranslatablePageInsertablesSuggester.php b/MLEB/Translate/insertables/TranslatablePageInsertablesSuggester.php
index adc69768..61582606 100644
--- a/MLEB/Translate/insertables/TranslatablePageInsertablesSuggester.php
+++ b/MLEB/Translate/insertables/TranslatablePageInsertablesSuggester.php
@@ -2,7 +2,7 @@
/**
* @file
* @author Niklas Laxström
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
*/
/**
@@ -16,7 +16,7 @@ class TranslatablePageInsertablesSuggester extends MediaWikiInsertablesSuggester
// Translatable pages allow naming the variables. Basically anything is
// allowed in a variable name, but here we are stricter to avoid too many
// false positives.
- $matches = array();
+ $matches = [];
preg_match_all( '/\$([a-zA-Z0-9-_]+)/', $text, $matches, PREG_SET_ORDER );
$new = array_map( function ( $match ) {