Change-Id: I7329f96fb36be043979a82b98d3bf2937a6c1f0e
This commit is contained in:
zoranzoki21 2022-03-05 15:11:43 +01:00
parent 6c8a2f0549
commit 9abed275c3
4 changed files with 8 additions and 1 deletions

3
.phan/config.php Normal file
View file

@ -0,0 +1,3 @@
<?php
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';

View file

@ -1,6 +1,7 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "38.0.0",
"mediawiki/mediawiki-phan-config": "0.11.1",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "0.5.0",
"php-parallel-lint/php-parallel-lint": "1.3.1"
@ -15,6 +16,7 @@
"minus-x fix .",
"phpcbf"
],
"phpcs": "phpcs -sp"
"phpcs": "phpcs -sp",
"phan": "phan -d . --long-progress-bar"
}
}

View file

@ -33,6 +33,7 @@ class Editcount extends IncludableSpecialPage {
} else {
$out = $contLang->formatNum( $this->editsInNs( $user, $namespace ) );
}
// @phan-suppress-next-line SecurityCheck-XSS
$this->getOutput()->addHTML( $out );
} else {
$nscount = $this->editsByNs( $user );

View file

@ -51,6 +51,7 @@ class EditcountHTML extends Editcount {
$out .= '
</table>
</form>';
// @phan-suppress-next-line SecurityCheck-XSS
$this->getOutput()->addHTML( $out );
}