Update PHP dependencies

Ran composer show --outdated and then composer update after updating
package.json

Fix CI failures:

* assertEmpty performs loose comparisons and should not be used.
This commit is contained in:
Abijeet
2022-07-07 17:49:27 +05:30
committed by Kartik Mistry
parent d078c170d8
commit 17cb847b93
3 changed files with 48 additions and 130 deletions

View File

@@ -34,8 +34,8 @@
"mustangostang/spyc": "0.6.3" "mustangostang/spyc": "0.6.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "9.5.20", "phpunit/phpunit": "9.5.21",
"mediawiki/mediawiki-codesniffer": "38.0.0" "mediawiki/mediawiki-codesniffer": "39.0.0"
}, },
"support": { "support": {
"issues": "https://github.com/wikimedia/language-data/issues", "issues": "https://github.com/wikimedia/language-data/issues",

170
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "d2ebe0a23115227f2a443c7f99979347", "content-hash": "559e58f6a0e50c247768c2b86119c5b2",
"packages": [ "packages": [
{ {
"name": "mustangostang/spyc", "name": "mustangostang/spyc",
@@ -141,16 +141,16 @@
}, },
{ {
"name": "composer/spdx-licenses", "name": "composer/spdx-licenses",
"version": "1.5.6", "version": "1.5.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/spdx-licenses.git", "url": "https://github.com/composer/spdx-licenses.git",
"reference": "a30d487169d799745ca7280bc90fdfa693536901" "reference": "c848241796da2abf65837d51dce1fae55a960149"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/spdx-licenses/zipball/a30d487169d799745ca7280bc90fdfa693536901", "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/c848241796da2abf65837d51dce1fae55a960149",
"reference": "a30d487169d799745ca7280bc90fdfa693536901", "reference": "c848241796da2abf65837d51dce1fae55a960149",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -201,7 +201,7 @@
"support": { "support": {
"irc": "irc://irc.freenode.org/composer", "irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/spdx-licenses/issues", "issues": "https://github.com/composer/spdx-licenses/issues",
"source": "https://github.com/composer/spdx-licenses/tree/1.5.6" "source": "https://github.com/composer/spdx-licenses/tree/1.5.7"
}, },
"funding": [ "funding": [
{ {
@@ -217,7 +217,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-11-18T10:14:14+00:00" "time": "2022-05-23T07:37:50+00:00"
}, },
{ {
"name": "doctrine/instantiator", "name": "doctrine/instantiator",
@@ -291,30 +291,31 @@
}, },
{ {
"name": "mediawiki/mediawiki-codesniffer", "name": "mediawiki/mediawiki-codesniffer",
"version": "v38.0.0", "version": "v39.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/wikimedia/mediawiki-tools-codesniffer.git", "url": "https://github.com/wikimedia/mediawiki-tools-codesniffer.git",
"reference": "059db7ef17adf2fd1088c42a05e6736e5c2aab2a" "reference": "9d6d7ea4314f928e8967bb386bb54c17bb96fb77"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/wikimedia/mediawiki-tools-codesniffer/zipball/059db7ef17adf2fd1088c42a05e6736e5c2aab2a", "url": "https://api.github.com/repos/wikimedia/mediawiki-tools-codesniffer/zipball/9d6d7ea4314f928e8967bb386bb54c17bb96fb77",
"reference": "059db7ef17adf2fd1088c42a05e6736e5c2aab2a", "reference": "9d6d7ea4314f928e8967bb386bb54c17bb96fb77",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"composer/semver": "^1.7.2|^3.2.4", "composer/semver": "3.3.2",
"composer/spdx-licenses": "~1.5.2", "composer/spdx-licenses": "~1.5.2",
"ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"php": ">=7.2.0", "php": ">=7.2.0",
"squizlabs/php_codesniffer": "3.6.1" "squizlabs/php_codesniffer": "3.6.2"
}, },
"require-dev": { "require-dev": {
"mediawiki/mediawiki-phan-config": "0.11.0", "mediawiki/mediawiki-phan-config": "0.11.1",
"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": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.1", "php-parallel-lint/php-parallel-lint": "1.3.2",
"phpunit/phpunit": "^8.5" "phpunit/phpunit": "^8.5"
}, },
"type": "phpcodesniffer-standard", "type": "phpcodesniffer-standard",
@@ -335,9 +336,9 @@
"mediawiki" "mediawiki"
], ],
"support": { "support": {
"source": "https://github.com/wikimedia/mediawiki-tools-codesniffer/tree/v38.0.0" "source": "https://github.com/wikimedia/mediawiki-tools-codesniffer/tree/v39.0.0"
}, },
"time": "2021-10-21T18:15:41+00:00" "time": "2022-05-04T16:19:01+00:00"
}, },
{ {
"name": "myclabs/deep-copy", "name": "myclabs/deep-copy",
@@ -400,16 +401,16 @@
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
"version": "v4.13.2", "version": "v4.14.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "210577fe3cf7badcc5814d99455df46564f3c077" "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1",
"reference": "210577fe3cf7badcc5814d99455df46564f3c077", "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -450,9 +451,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/nikic/PHP-Parser/issues", "issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0"
}, },
"time": "2021-11-30T19:35:32+00:00" "time": "2022-05-31T20:59:12+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",
@@ -1112,16 +1113,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "9.5.20", "version": "9.5.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0e32b76be457de00e83213528f6bb37e2a38fcb1",
"reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1155,7 +1156,6 @@
"sebastian/version": "^3.0.2" "sebastian/version": "^3.0.2"
}, },
"require-dev": { "require-dev": {
"ext-pdo": "*",
"phpspec/prophecy-phpunit": "^2.0.1" "phpspec/prophecy-phpunit": "^2.0.1"
}, },
"suggest": { "suggest": {
@@ -1199,7 +1199,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.21"
}, },
"funding": [ "funding": [
{ {
@@ -1211,7 +1211,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2022-04-01T12:37:26+00:00" "time": "2022-06-19T12:14:25+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@@ -2179,16 +2179,16 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "3.6.1", "version": "3.6.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e" "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/f268ca40d54617c6e06757f83f699775c9b3ff2e", "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a",
"reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e", "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2231,89 +2231,7 @@
"source": "https://github.com/squizlabs/PHP_CodeSniffer", "source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
}, },
"time": "2021-10-11T04:00:11+00:00" "time": "2021-12-12T21:44:58+00:00"
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.25.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "30885182c981ab175d4d034db0f6f469898070ab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab",
"reference": "30885182c981ab175d4d034db0f6f469898070ab",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"provide": {
"ext-ctype": "*"
},
"suggest": {
"ext-ctype": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.23-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"files": [
"bootstrap.php"
],
"psr-4": {
"Symfony\\Polyfill\\Ctype\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Gert de Pagter",
"email": "BackEndTea@gmail.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for ctype functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"ctype",
"polyfill",
"portable"
],
"support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-10-20T20:35:02+00:00"
}, },
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
@@ -2367,21 +2285,21 @@
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
"version": "1.10.0", "version": "1.11.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/webmozarts/assert.git", "url": "https://github.com/webmozarts/assert.git",
"reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991",
"reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2 || ^8.0", "ext-ctype": "*",
"symfony/polyfill-ctype": "^1.8" "php": "^7.2 || ^8.0"
}, },
"conflict": { "conflict": {
"phpstan/phpstan": "<0.12.20", "phpstan/phpstan": "<0.12.20",
@@ -2419,9 +2337,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/webmozarts/assert/issues", "issues": "https://github.com/webmozarts/assert/issues",
"source": "https://github.com/webmozarts/assert/tree/1.10.0" "source": "https://github.com/webmozarts/assert/tree/1.11.0"
}, },
"time": "2021-03-09T10:59:23+00:00" "time": "2022-06-03T18:03:27+00:00"
} }
], ],
"aliases": [], "aliases": [],

View File

@@ -86,8 +86,8 @@ class LanguageUtilTest extends TestCase {
* @covers getLanguagesInScripts * @covers getLanguagesInScripts
*/ */
public function testGetLanguagesInScripts() { public function testGetLanguagesInScripts() {
$this->assertEmpty( $this->assertCount(
$this->languageUtil->getLanguagesInScripts( [ self::UNKNOWN_LANGUAGE_CODE ] ) 0, $this->languageUtil->getLanguagesInScripts( [ self::UNKNOWN_LANGUAGE_CODE ] )
); );
$expectedValues = $this->languageUtil->getLanguagesInScripts( [ 'Latn', 'Grek' ] ); $expectedValues = $this->languageUtil->getLanguagesInScripts( [ 'Latn', 'Grek' ] );