build: Bump phan to 0.10.2, remove taint-check

Change-Id: I044a8b6d32dc539911616e88f9491b3b3c382449
This commit is contained in:
Umherirrender 2020-05-31 17:39:12 +02:00
parent 1e47916311
commit 78dace58e6
3 changed files with 8 additions and 6 deletions

View file

@ -8,7 +8,9 @@ $cfg['directory_list'] = array_merge(
$cfg['directory_list'],
[
'../../extensions/VisualEditor',
'../../extensions/Wikibase'
'../../extensions/Wikibase/client',
'../../extensions/Wikibase/repo',
'../../extensions/Wikibase/lib',
]
);
@ -16,7 +18,9 @@ $cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'],
[
'../../extensions/VisualEditor',
'../../extensions/Wikibase'
'../../extensions/Wikibase/client',
'../../extensions/Wikibase/repo',
'../../extensions/Wikibase/lib',
]
);

View file

@ -113,6 +113,7 @@ class MathLaTeXML extends MathMathML {
$this->lastError = '';
$requestResult = $this->makeRequest( $host, $post, $res, $this->lastError );
if ( $requestResult ) {
// @phan-suppress-next-line PhanTypeMismatchArgumentInternal
$jsonResult = json_decode( $res );
if ( $jsonResult && json_last_error() === JSON_ERROR_NONE ) {
if ( $this->isValidMathML( $jsonResult->result ) ) {

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "31.0.0",
"mediawiki/mediawiki-phan-config": "0.9.1",
"mediawiki/mediawiki-phan-config": "0.10.2",
"mediawiki/minus-x": "1.0.0",
"php-parallel-lint/php-console-highlighter": "0.4.0",
"php-parallel-lint/php-parallel-lint": "1.0.0"
@ -16,8 +16,5 @@
"minus-x fix .",
"phpcbf"
]
},
"extra": {
"phan-taint-check-plugin": "2.0.1"
}
}