build: Updating dependencies

composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
  The following sniffs are failing and were disabled:
  * PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeReturnType

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: Id866782d39ac02a329bd79539f2d52392fffd296
This commit is contained in:
libraryupgrader 2021-07-23 21:23:16 +00:00
parent a64b97a620
commit 17a644263a
16 changed files with 38 additions and 37 deletions

View file

@ -10,6 +10,7 @@
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeReturnType" />
</rule>
<arg name="encoding" value="UTF-8" />
<arg name="extensions" value="php" />

View file

@ -1,6 +1,6 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "36.0.0",
"mediawiki/mediawiki-codesniffer": "37.0.0",
"mediawiki/mediawiki-phan-config": "0.10.6",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "0.5.0",

View file

@ -74,7 +74,7 @@ class EchoContainmentSet {
*
* @param string $preferenceName
*/
public function addTitleIDsFromUserOption( string $preferenceName ) :void {
public function addTitleIDsFromUserOption( string $preferenceName ): void {
$preference = $this->recipient->getOption( $preferenceName, [] );
if ( !is_string( $preference ) ) {
// We expect the preference data to be saved as a string via the

View file

@ -13,7 +13,7 @@ class EchoNotificationController {
/**
* Echo maximum number of users to cache
*
* @var int $maxRecipientCacheSize
* @var int
*/
protected static $maxRecipientCacheSize = 200;

44
package-lock.json generated
View file

@ -1638,15 +1638,15 @@
}
},
"css-select": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/css-select/-/css-select-3.1.2.tgz",
"integrity": "sha512-qmss1EihSuBNWNNhHjxzxSfJoFBM/lERB/Q4EnsJQQC62R2evJDW481091oAdOr9uh46/0n4nrg0It5cAnj1RA==",
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz",
"integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==",
"dev": true,
"requires": {
"boolbase": "^1.0.0",
"css-what": "^4.0.0",
"domhandler": "^4.0.0",
"domutils": "^2.4.3",
"css-what": "^5.0.0",
"domhandler": "^4.2.0",
"domutils": "^2.6.0",
"nth-check": "^2.0.0"
},
"dependencies": {
@ -1677,9 +1677,9 @@
}
},
"domutils": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/domutils/-/domutils-2.6.0.tgz",
"integrity": "sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA==",
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz",
"integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==",
"dev": true,
"requires": {
"dom-serializer": "^1.0.1",
@ -1756,9 +1756,9 @@
"dev": true
},
"css-what": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/css-what/-/css-what-4.0.0.tgz",
"integrity": "sha512-teijzG7kwYfNVsUh2H/YN62xW3KK9YhXEgSlbxMlcyjPNvdKJqFx5lrwlJgoFP1ZHlB89iGDlo/JyshKeRhv5A==",
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/css-what/-/css-what-5.0.1.tgz",
"integrity": "sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==",
"dev": true
},
"cssesc": {
@ -5740,9 +5740,9 @@
}
},
"postcss": {
"version": "7.0.35",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.35.tgz",
"integrity": "sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg==",
"version": "7.0.36",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz",
"integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==",
"dev": true,
"requires": {
"chalk": "^2.4.2",
@ -6926,15 +6926,15 @@
"dev": true
},
"svgo": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/svgo/-/svgo-2.3.0.tgz",
"integrity": "sha512-fz4IKjNO6HDPgIQxu4IxwtubtbSfGEAJUq/IXyTPIkGhWck/faiiwfkvsB8LnBkKLvSoyNNIY6d13lZprJMc9Q==",
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/svgo/-/svgo-2.3.1.tgz",
"integrity": "sha512-riDDIQgXpEnn0BEl9Gvhh1LNLIyiusSpt64IR8upJu7MwxnzetmF/Y57pXQD2NMX2lVyMRzXt5f2M5rO4wG7Dw==",
"dev": true,
"requires": {
"@trysound/sax": "0.1.1",
"chalk": "^4.1.0",
"commander": "^7.1.0",
"css-select": "^3.1.2",
"css-select": "^4.1.3",
"css-tree": "^1.1.2",
"csso": "^4.2.0",
"stable": "^0.1.8"
@ -7092,9 +7092,9 @@
}
},
"trim-newlines": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz",
"integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz",
"integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==",
"dev": true
},
"trough": {

View file

@ -24,7 +24,7 @@
"grunt-eslint": "23.0.0",
"grunt-stylelint": "0.16.0",
"stylelint-config-wikimedia": "0.10.3",
"svgo": "2.3.0",
"svgo": "2.3.1",
"wdio-mediawiki": "1.1.1",
"webdriverio": "6.1.16"
}

View file

@ -132,12 +132,12 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
],
];
protected function setUp() : void {
protected function setUp(): void {
parent::setUp();
$this->setMwGlobals( [ 'wgDiff' => false ] );
}
protected function tearDown() : void {
protected function tearDown(): void {
parent::tearDown();
global $wgHooks;

View file

@ -13,7 +13,7 @@ class MWEchoNotifUserTest extends MediaWikiTestCase {
*/
private $cache;
protected function setUp() : void {
protected function setUp(): void {
parent::setUp();
$this->cache = new WANObjectCache( [
'cache' => MediaWikiServices::getInstance()->getMainObjectStash(),

View file

@ -10,7 +10,7 @@ class NotificationsTest extends MediaWikiTestCase {
/** @var User */
private $sysop;
protected function setUp() : void {
protected function setUp(): void {
parent::setUp();
$this->sysop = $this->getTestSysop()->getUser();
}

View file

@ -7,7 +7,7 @@
*/
class EchoTalkPageFunctionalTest extends ApiTestCase {
protected function setUp() : void {
protected function setUp(): void {
parent::setUp();
$this->db->delete( 'echo_event', '*' );
}

View file

@ -6,7 +6,7 @@
*/
class MWEchoThankYouEditTest extends MediaWikiTestCase {
protected function setUp() : void {
protected function setUp(): void {
parent::setUp();
$this->tablesUsed[] = 'echo_event';
$this->tablesUsed[] = 'echo_notification';

View file

@ -16,7 +16,7 @@ class EchoExecuteFirstArgumentStub implements Stub {
return call_user_func( reset( $invocation->arguments ) );
}
public function toString() : string {
public function toString(): string {
return 'return result of call_user_func on first invocation argument';
}
}

View file

@ -8,7 +8,7 @@ use Wikimedia\Rdbms\IDatabase;
*/
class EchoEventMapperTest extends MediaWikiTestCase {
protected function setUp() : void {
protected function setUp(): void {
parent::setUp();
$this->tablesUsed[] = 'echo_event';
$this->tablesUsed[] = 'echo_notification';

View file

@ -15,7 +15,7 @@ class EchoAttributeManagerTest extends MediaWikiUnitTestCase {
array $categories = [],
array $defaultNotifyTypeAvailability = [],
array $notifyTypeAvailabilityByCategory = []
) : EchoAttributeManager {
): EchoAttributeManager {
$userGroupManager = $this->createNoOpMock( UserGroupManager::class, [ 'getUserGroups' ] );
$userGroupManager->method( 'getUserGroups' )->willReturn( [ 'echo_group' ] );

View file

@ -23,7 +23,7 @@ class EchoContainmentSetTest extends \MediaWikiUnitTestCase {
$this->assertSame( $expected, $containmentSet->contains( $contains ) );
}
public function addTitlesFromUserOptionProvider() :array {
public function addTitlesFromUserOptionProvider(): array {
return [
[
'foo',

View file

@ -24,7 +24,7 @@ class NotificationControllerUnitTest extends MediaWikiUnitTestCase {
);
}
public function PageLinkedTitleMutedByUserDataProvider() :array {
public function PageLinkedTitleMutedByUserDataProvider(): array {
return [
[
$this->getMockTitle( 123 ),