mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-13 17:57:11 +00:00
build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0 * php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1 Change-Id: I759468d63803b310d5385af517589e70db75c62c
This commit is contained in:
parent
d253fa4e28
commit
e5cb2df074
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "37.0.0",
|
"mediawiki/mediawiki-codesniffer": "37.0.0",
|
||||||
"mediawiki/mediawiki-phan-config": "0.10.6",
|
"mediawiki/mediawiki-phan-config": "0.11.0",
|
||||||
"mediawiki/minus-x": "1.1.1",
|
"mediawiki/minus-x": "1.1.1",
|
||||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
||||||
"php-parallel-lint/php-parallel-lint": "1.3.0"
|
"php-parallel-lint/php-parallel-lint": "1.3.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": [
|
"test": [
|
||||||
|
|
|
@ -60,7 +60,6 @@ class ApiTemplateData extends ApiBase {
|
||||||
$langCode = false;
|
$langCode = false;
|
||||||
} elseif ( !$services->getLanguageNameUtils()->isValidCode( $params['lang'] ) ) {
|
} elseif ( !$services->getLanguageNameUtils()->isValidCode( $params['lang'] ) ) {
|
||||||
$this->dieWithError( [ 'apierror-invalidlang', 'lang' ] );
|
$this->dieWithError( [ 'apierror-invalidlang', 'lang' ] );
|
||||||
throw new LogicException();
|
|
||||||
} else {
|
} else {
|
||||||
$langCode = $params['lang'];
|
$langCode = $params['lang'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue