build: Updating composer dependencies

* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: I33ceb173eb7775833a00dd4ae1761df5e4a4c4d0
This commit is contained in:
libraryupgrader 2021-09-08 20:53:12 +00:00 committed by Umherirrender
parent 78e75ed030
commit a765c687c9
3 changed files with 5 additions and 3 deletions

View file

@ -1,10 +1,10 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "37.0.0",
"mediawiki/mediawiki-phan-config": "0.10.6",
"mediawiki/mediawiki-phan-config": "0.11.0",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "0.5.0",
"php-parallel-lint/php-parallel-lint": "1.3.0"
"php-parallel-lint/php-parallel-lint": "1.3.1"
},
"scripts": {
"fix": [

View file

@ -159,7 +159,7 @@ class ReplaceAll extends Maintenance {
$this->target[] = $field[0];
$this->replacement[] = $field[1];
$this->useRegex[] = isset( $field[2] ) ? true : false;
$this->useRegex[] = isset( $field[2] );
}
return true;
}

View file

@ -806,6 +806,7 @@ class SpecialReplaceText extends SpecialPage {
$contextBefore = $wgLang->truncateForDatabase( $contextBefore, -$cw, '...', false );
$contextAfter = $wgLang->truncateForDatabase( $contextAfter, $cw, '...', false );
// @phan-suppress-next-line SecurityCheck-DoubleEscaped T290624
$context .= $this->convertWhiteSpaceToHTML( $contextBefore );
$snippet = $this->convertWhiteSpaceToHTML( substr( $text, $index, $len ) );
if ( $use_regex ) {
@ -816,6 +817,7 @@ class SpecialReplaceText extends SpecialPage {
}
$context .= preg_replace( $targetStr, '<span class="ext-replacetext-searchmatch">\0</span>', $snippet );
// @phan-suppress-next-line SecurityCheck-DoubleEscaped T290624
$context .= $this->convertWhiteSpaceToHTML( $contextAfter );
}
return $context;