build: Updating mediawiki/mediawiki-phan-config to 0.10.6

Change-Id: I19c53a7b3d3ea12bb098f754dc68ce23cc5c8529
This commit is contained in:
libraryupgrader 2020-12-20 04:01:58 +00:00 committed by Umherirrender
parent 0f3699c40f
commit 6218ba8396
3 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "34.0.0",
"mediawiki/mediawiki-phan-config": "0.10.5",
"mediawiki/mediawiki-phan-config": "0.10.6",
"mediawiki/minus-x": "1.1.0",
"php-parallel-lint/php-console-highlighter": "0.5.0",
"php-parallel-lint/php-parallel-lint": "1.2.0"

View file

@ -338,6 +338,7 @@ class TitleBlacklist {
foreach ( $blacklist as $e ) {
Wikimedia\suppressWarnings();
$regex = $e->getRegex();
// @phan-suppress-next-line SecurityCheck-ReDoS
if ( preg_match( "/{$regex}/u", '' ) === false ) {
$badEntries[] = $e->getRaw();
}

View file

@ -130,6 +130,7 @@ class TitleBlacklistEntry {
}
Wikimedia\suppressWarnings();
// @phan-suppress-next-line SecurityCheck-ReDoS
$match = preg_match(
"/^(?:{$this->mRegex})$/us" . ( isset( $this->mParams['casesensitive'] ) ? '' : 'i' ),
$title
@ -233,6 +234,7 @@ class TitleBlacklistEntry {
}
// Return result
if ( $regex ) {
// @phan-suppress-next-line SecurityCheck-ReDoS
return new TitleBlacklistEntry( $regex, $options, $raw, $source );
} else {
return null;