mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
build: Bump phan to 0.10.2, remove taint-check
Change-Id: I044a8b6d32dc539911616e88f9491b3b3c382449
This commit is contained in:
parent
1e47916311
commit
78dace58e6
|
@ -8,7 +8,9 @@ $cfg['directory_list'] = array_merge(
|
||||||
$cfg['directory_list'],
|
$cfg['directory_list'],
|
||||||
[
|
[
|
||||||
'../../extensions/VisualEditor',
|
'../../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'],
|
$cfg['exclude_analysis_directory_list'],
|
||||||
[
|
[
|
||||||
'../../extensions/VisualEditor',
|
'../../extensions/VisualEditor',
|
||||||
'../../extensions/Wikibase'
|
'../../extensions/Wikibase/client',
|
||||||
|
'../../extensions/Wikibase/repo',
|
||||||
|
'../../extensions/Wikibase/lib',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@ class MathLaTeXML extends MathMathML {
|
||||||
$this->lastError = '';
|
$this->lastError = '';
|
||||||
$requestResult = $this->makeRequest( $host, $post, $res, $this->lastError );
|
$requestResult = $this->makeRequest( $host, $post, $res, $this->lastError );
|
||||||
if ( $requestResult ) {
|
if ( $requestResult ) {
|
||||||
|
// @phan-suppress-next-line PhanTypeMismatchArgumentInternal
|
||||||
$jsonResult = json_decode( $res );
|
$jsonResult = json_decode( $res );
|
||||||
if ( $jsonResult && json_last_error() === JSON_ERROR_NONE ) {
|
if ( $jsonResult && json_last_error() === JSON_ERROR_NONE ) {
|
||||||
if ( $this->isValidMathML( $jsonResult->result ) ) {
|
if ( $this->isValidMathML( $jsonResult->result ) ) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "31.0.0",
|
"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",
|
"mediawiki/minus-x": "1.0.0",
|
||||||
"php-parallel-lint/php-console-highlighter": "0.4.0",
|
"php-parallel-lint/php-console-highlighter": "0.4.0",
|
||||||
"php-parallel-lint/php-parallel-lint": "1.0.0"
|
"php-parallel-lint/php-parallel-lint": "1.0.0"
|
||||||
|
@ -16,8 +16,5 @@
|
||||||
"minus-x fix .",
|
"minus-x fix .",
|
||||||
"phpcbf"
|
"phpcbf"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"extra": {
|
|
||||||
"phan-taint-check-plugin": "2.0.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue