summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2022-09-27 18:53:03 -0400
committerBrian Evans <grknight@gentoo.org>2022-09-27 19:02:02 -0400
commit5ca8d30155e11d97b20f79acec40632c2e06fcd5 (patch)
tree7531fb116791f8328c0bb0cabe42265ca67e6df9 /MLEB/Translate/ffs/FlatPhpFFS.php
parentMerge branch 'master' into wikitest (diff)
downloadextensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.tar.gz
extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.tar.bz2
extensions-5ca8d30155e11d97b20f79acec40632c2e06fcd5.zip
Update MLEB to 2021.12v1.35.2
This is the final version for MW 1.35 Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/ffs/FlatPhpFFS.php')
-rw-r--r--MLEB/Translate/ffs/FlatPhpFFS.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/MLEB/Translate/ffs/FlatPhpFFS.php b/MLEB/Translate/ffs/FlatPhpFFS.php
index 4620ba5a..f0eeef96 100644
--- a/MLEB/Translate/ffs/FlatPhpFFS.php
+++ b/MLEB/Translate/ffs/FlatPhpFFS.php
@@ -37,7 +37,7 @@ class FlatPhpFFS extends SimpleFFS implements MetaYamlSchemaExtender {
foreach ( $matches as $_ ) {
$legal = Title::legalChars();
$key = preg_replace_callback( "/([^$legal]|\\\\)/u",
- function ( $m ) {
+ static function ( $m ) {
return '\x' . dechex( ord( $m[0] ) );
},
$_[1]
@@ -55,12 +55,7 @@ class FlatPhpFFS extends SimpleFFS implements MetaYamlSchemaExtender {
}
protected function writeReal( MessageCollection $collection ) {
- if ( isset( $this->extra['header'] ) ) {
- $output = $this->extra['header'];
- } else {
- $output = "<?php\n";
- }
-
+ $output = $this->extra['header'] ?? "<?php\n";
$output .= $this->doHeader( $collection );
$mangler = $this->group->getMangler();