mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 17:20:12 +00:00
build: Bump mediawiki-phan-config to 0.8.0
Change-Id: Icbe64747c8c219882d419f4767704af96368b11a
This commit is contained in:
parent
0cbd696ad1
commit
12065c11ca
|
@ -4,7 +4,7 @@
|
||||||
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||||
"mediawiki/minus-x": "0.3.2",
|
"mediawiki/minus-x": "0.3.2",
|
||||||
"mediawiki/mediawiki-phan-config": "0.6.1"
|
"mediawiki/mediawiki-phan-config": "0.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": [
|
"test": [
|
||||||
|
|
|
@ -47,6 +47,7 @@ class ApiRecordLint extends ApiBase {
|
||||||
if ( !is_array( $data ) ) {
|
if ( !is_array( $data ) ) {
|
||||||
$this->dieWithError( 'apierror-linter-invalid-data', 'invalid-data' );
|
$this->dieWithError( 'apierror-linter-invalid-data', 'invalid-data' );
|
||||||
}
|
}
|
||||||
|
'@phan-var array[] $data';
|
||||||
|
|
||||||
$errors = [];
|
$errors = [];
|
||||||
$title = Title::newFromText( $params['page'] );
|
$title = Title::newFromText( $params['page'] );
|
||||||
|
|
|
@ -182,6 +182,7 @@ class LintErrorsPager extends TablePager {
|
||||||
if ( isset( $lintError->templateInfo['multiPartTemplateBlock'] ) ) {
|
if ( isset( $lintError->templateInfo['multiPartTemplateBlock'] ) ) {
|
||||||
return $this->msg( 'multi-part-template-block' )->escaped();
|
return $this->msg( 'multi-part-template-block' )->escaped();
|
||||||
} else {
|
} else {
|
||||||
|
// @phan-suppress-next-line PhanTypeArraySuspiciousNullable Null checked above
|
||||||
$templateName = $lintError->templateInfo['name'];
|
$templateName = $lintError->templateInfo['name'];
|
||||||
// Parsoid provides us with fully qualified template title
|
// Parsoid provides us with fully qualified template title
|
||||||
// So, fallback to the default main namespace
|
// So, fallback to the default main namespace
|
||||||
|
|
Loading…
Reference in a new issue