Update Psalm baseline

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-11-27 18:14:11 +01:00
parent 7c08488efb
commit 2b2e30f620
2 changed files with 82 additions and 94 deletions

110
composer.lock generated
View File

@ -454,12 +454,12 @@
"source": {
"type": "git",
"url": "https://github.com/phpmyadmin/sql-parser.git",
"reference": "55f54b8ba5643b51d5cf90582e4efc51d7a1c7eb"
"reference": "64de8adf3d41a8a485d946247b9eaade6d23c99f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpmyadmin/sql-parser/zipball/55f54b8ba5643b51d5cf90582e4efc51d7a1c7eb",
"reference": "55f54b8ba5643b51d5cf90582e4efc51d7a1c7eb",
"url": "https://api.github.com/repos/phpmyadmin/sql-parser/zipball/64de8adf3d41a8a485d946247b9eaade6d23c99f",
"reference": "64de8adf3d41a8a485d946247b9eaade6d23c99f",
"shasum": ""
},
"require": {
@ -537,7 +537,7 @@
"type": "other"
}
],
"time": "2023-11-17T17:04:35+00:00"
"time": "2023-11-25T12:08:21+00:00"
},
{
"name": "phpmyadmin/twig-i18n-extension",
@ -2031,26 +2031,27 @@
},
{
"name": "twig/twig",
"version": "v3.7.1",
"version": "v3.8.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "a0ce373a0ca3bf6c64b9e3e2124aca502ba39554"
"reference": "9d15f0ac07f44dc4217883ec6ae02fd555c6f71d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/a0ce373a0ca3bf6c64b9e3e2124aca502ba39554",
"reference": "a0ce373a0ca3bf6c64b9e3e2124aca502ba39554",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/9d15f0ac07f44dc4217883ec6ae02fd555c6f71d",
"reference": "9d15f0ac07f44dc4217883ec6ae02fd555c6f71d",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/polyfill-ctype": "^1.8",
"symfony/polyfill-mbstring": "^1.3"
"symfony/polyfill-mbstring": "^1.3",
"symfony/polyfill-php80": "^1.22"
},
"require-dev": {
"psr/container": "^1.0|^2.0",
"symfony/phpunit-bridge": "^5.4.9|^6.3"
"symfony/phpunit-bridge": "^5.4.9|^6.3|^7.0"
},
"type": "library",
"autoload": {
@ -2086,7 +2087,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v3.7.1"
"source": "https://github.com/twigphp/Twig/tree/v3.8.0"
},
"funding": [
{
@ -2098,7 +2099,7 @@
"type": "tidelift"
}
],
"time": "2023-08-28T11:09:02+00:00"
"time": "2023-11-21T18:54:41+00:00"
},
{
"name": "webmozart/assert",
@ -4607,16 +4608,16 @@
},
{
"name": "phpstan/phpdoc-parser",
"version": "1.24.2",
"version": "1.24.4",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "bcad8d995980440892759db0c32acae7c8e79442"
"reference": "6bd0c26f3786cd9b7c359675cb789e35a8e07496"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/bcad8d995980440892759db0c32acae7c8e79442",
"reference": "bcad8d995980440892759db0c32acae7c8e79442",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6bd0c26f3786cd9b7c359675cb789e35a8e07496",
"reference": "6bd0c26f3786cd9b7c359675cb789e35a8e07496",
"shasum": ""
},
"require": {
@ -4648,22 +4649,22 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.24.2"
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.24.4"
},
"time": "2023-09-26T12:28:12+00:00"
"time": "2023-11-26T18:29:22+00:00"
},
{
"name": "phpstan/phpstan",
"version": "1.10.42",
"version": "1.10.45",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "fc2316508de5453140b5cb3d3f8683a33e92f26a"
"reference": "2f024fbb47432e2e62ad8a8032387aa2dd631c73"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/fc2316508de5453140b5cb3d3f8683a33e92f26a",
"reference": "fc2316508de5453140b5cb3d3f8683a33e92f26a",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/2f024fbb47432e2e62ad8a8032387aa2dd631c73",
"reference": "2f024fbb47432e2e62ad8a8032387aa2dd631c73",
"shasum": ""
},
"require": {
@ -4712,7 +4713,7 @@
"type": "tidelift"
}
],
"time": "2023-11-17T15:26:57+00:00"
"time": "2023-11-27T14:15:06+00:00"
},
{
"name": "phpstan/phpstan-phpunit",
@ -4868,16 +4869,16 @@
},
{
"name": "phpunit/php-code-coverage",
"version": "10.1.8",
"version": "10.1.9",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "84838eed9ded511f61dc3e8b5944a52d9017b297"
"reference": "a56a9ab2f680246adcf3db43f38ddf1765774735"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/84838eed9ded511f61dc3e8b5944a52d9017b297",
"reference": "84838eed9ded511f61dc3e8b5944a52d9017b297",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/a56a9ab2f680246adcf3db43f38ddf1765774735",
"reference": "a56a9ab2f680246adcf3db43f38ddf1765774735",
"shasum": ""
},
"require": {
@ -4934,7 +4935,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.8"
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.9"
},
"funding": [
{
@ -4942,7 +4943,7 @@
"type": "github"
}
],
"time": "2023-11-15T13:31:15+00:00"
"time": "2023-11-23T12:23:20+00:00"
},
{
"name": "phpunit/php-file-iterator",
@ -5706,17 +5707,17 @@
"source": {
"type": "git",
"url": "https://github.com/Roave/SecurityAdvisories.git",
"reference": "4bca2ea3f3d800c4a25ed3171b03980fa247521b"
"reference": "2b23329e299c9a6cd98a82f5137ab4909c8e506d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/4bca2ea3f3d800c4a25ed3171b03980fa247521b",
"reference": "4bca2ea3f3d800c4a25ed3171b03980fa247521b",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/2b23329e299c9a6cd98a82f5137ab4909c8e506d",
"reference": "2b23329e299c9a6cd98a82f5137ab4909c8e506d",
"shasum": ""
},
"conflict": {
"3f/pygmentize": "<1.2",
"admidio/admidio": "<4.2.11",
"admidio/admidio": "<4.2.13",
"adodb/adodb-php": "<=5.20.20|>=5.21,<=5.21.3",
"aheinze/cockpit": "<2.2",
"aimeos/aimeos-typo3": "<19.10.12|>=20,<20.10.5",
@ -5789,10 +5790,10 @@
"codeception/codeception": "<3.1.3|>=4,<4.1.22",
"codeigniter/framework": "<3.1.9",
"codeigniter4/framework": "<=4.4.2",
"codeigniter4/shield": "<1.0.0.0-beta4",
"codeigniter4/shield": "<1.0.0.0-beta8",
"codiad/codiad": "<=2.8.4",
"composer/composer": "<1.10.27|>=2,<2.2.22|>=2.3,<2.6.4",
"concrete5/concrete5": "<=9.2.1",
"concrete5/concrete5": "<9.2.2",
"concrete5/core": "<8.5.8|>=9,<9.1",
"contao-components/mediaelement": ">=2.14.2,<2.21.1",
"contao/contao": ">=4,<4.4.56|>=4.5,<4.9.40|>=4.10,<4.11.7|>=4.13,<4.13.21|>=5.1,<5.1.4",
@ -6132,6 +6133,7 @@
"really-simple-plugins/complianz-gdpr": "<6.4.2",
"remdex/livehelperchat": "<3.99",
"reportico-web/reportico": "<=7.1.21",
"rhukster/dom-sanitizer": "<1.0.7",
"rmccue/requests": ">=1.6,<1.8",
"robrichards/xmlseclibs": "<3.0.4",
"roots/soil": "<4.1",
@ -6191,7 +6193,7 @@
"spoonity/tcpdf": "<6.2.22",
"squizlabs/php_codesniffer": ">=1,<2.8.1|>=3,<3.0.1",
"ssddanbrown/bookstack": "<22.02.3",
"statamic/cms": "<4.34",
"statamic/cms": "<4.36",
"stormpath/sdk": "<9.9.99",
"studio-42/elfinder": "<2.1.62",
"subhh/libconnect": "<7.0.8|>=8,<8.1",
@ -6200,6 +6202,7 @@
"sumocoders/framework-user-bundle": "<1.4",
"swag/paypal": "<5.4.4",
"swiftmailer/swiftmailer": ">=4,<5.4.5",
"swiftyedit/swiftyedit": "<1.2",
"sylius/admin-bundle": ">=1,<1.0.17|>=1.1,<1.1.9|>=1.2,<1.2.2",
"sylius/grid": ">=1,<1.1.19|>=1.2,<1.2.18|>=1.3,<1.3.13|>=1.4,<1.4.5|>=1.5,<1.5.1",
"sylius/grid-bundle": "<1.10.1",
@ -6400,7 +6403,7 @@
"type": "tidelift"
}
],
"time": "2023-11-15T21:04:09+00:00"
"time": "2023-11-23T04:04:32+00:00"
},
{
"name": "sebastian/cli-parser",
@ -8263,16 +8266,16 @@
},
{
"name": "theseer/tokenizer",
"version": "1.2.1",
"version": "1.2.2",
"source": {
"type": "git",
"url": "https://github.com/theseer/tokenizer.git",
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e"
"reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e",
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
"reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
"shasum": ""
},
"require": {
@ -8301,7 +8304,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": {
"issues": "https://github.com/theseer/tokenizer/issues",
"source": "https://github.com/theseer/tokenizer/tree/1.2.1"
"source": "https://github.com/theseer/tokenizer/tree/1.2.2"
},
"funding": [
{
@ -8309,20 +8312,20 @@
"type": "github"
}
],
"time": "2021-07-28T10:34:58+00:00"
"time": "2023-11-20T00:12:19+00:00"
},
{
"name": "vimeo/psalm",
"version": "5.15.0",
"version": "5.16.0",
"source": {
"type": "git",
"url": "https://github.com/vimeo/psalm.git",
"reference": "5c774aca4746caf3d239d9c8cadb9f882ca29352"
"reference": "2897ba636551a8cb61601cc26f6ccfbba6c36591"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/5c774aca4746caf3d239d9c8cadb9f882ca29352",
"reference": "5c774aca4746caf3d239d9c8cadb9f882ca29352",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/2897ba636551a8cb61601cc26f6ccfbba6c36591",
"reference": "2897ba636551a8cb61601cc26f6ccfbba6c36591",
"shasum": ""
},
"require": {
@ -8347,8 +8350,8 @@
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"sebastian/diff": "^4.0 || ^5.0",
"spatie/array-to-xml": "^2.17.0 || ^3.0",
"symfony/console": "^4.1.6 || ^5.0 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0"
"symfony/console": "^4.1.6 || ^5.0 || ^6.0 || ^7.0",
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0"
},
"conflict": {
"nikic/php-parser": "4.17.0"
@ -8370,7 +8373,7 @@
"psalm/plugin-phpunit": "^0.18",
"slevomat/coding-standard": "^8.4",
"squizlabs/php_codesniffer": "^3.6",
"symfony/process": "^4.4 || ^5.0 || ^6.0"
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0"
},
"suggest": {
"ext-curl": "In order to send data to shepherd",
@ -8383,7 +8386,7 @@
"psalm-refactor",
"psalter"
],
"type": "library",
"type": "project",
"extra": {
"branch-alias": {
"dev-master": "5.x-dev",
@ -8415,10 +8418,11 @@
"static analysis"
],
"support": {
"docs": "https://psalm.dev/docs",
"issues": "https://github.com/vimeo/psalm/issues",
"source": "https://github.com/vimeo/psalm/tree/5.15.0"
"source": "https://github.com/vimeo/psalm"
},
"time": "2023-08-20T23:07:30+00:00"
"time": "2023-11-22T20:38:47+00:00"
},
{
"name": "web-auth/cose-lib",

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
<file src="app/services_loader.php">
<MixedArgument>
<code>$argumentName</code>
@ -102,7 +102,6 @@
</MixedOperand>
<PossiblyInvalidArgument>
<code><![CDATA[$_POST['foreign_filter']]]></code>
<code><![CDATA[$pos / $this->settings->maxRows]]></code>
</PossiblyInvalidArgument>
<PossiblyInvalidCast>
<code><![CDATA[$_POST['rownumber']]]></code>
@ -3386,9 +3385,6 @@
<code>Config::getInstance()</code>
<code>Config::getInstance()</code>
</DeprecatedMethod>
<InvalidArgument>
<code>$start</code>
</InvalidArgument>
<InvalidArrayOffset>
<code><![CDATA[$GLOBALS['errorUrl']]]></code>
<code><![CDATA[$GLOBALS['errorUrl']]]></code>
@ -3401,6 +3397,7 @@
<code><![CDATA[$_REQUEST['pos']]]></code>
<code><![CDATA[$_REQUEST['session_max_rows']]]></code>
<code>$rows</code>
<code>$start</code>
</PossiblyInvalidArgument>
<PossiblyInvalidOperand>
<code><![CDATA[$_REQUEST['pos']]]></code>
@ -6533,6 +6530,9 @@
</RedundantCondition>
</file>
<file src="src/Git.php">
<ArgumentTypeCoercion>
<code><![CDATA[$user[4] ?? '+0000']]></code>
</ArgumentTypeCoercion>
<MixedArgument>
<code>$commit</code>
<code><![CDATA[$commitJson->message]]></code>
@ -9287,7 +9287,6 @@
</MixedReturnStatement>
<PossiblyInvalidArgument>
<code>$dbName</code>
<code>$sqlStatements</code>
</PossiblyInvalidArgument>
<PossiblyInvalidCast>
<code><![CDATA[$_REQUEST['csv_new_db_name']]]></code>
@ -9296,7 +9295,6 @@
</PossiblyInvalidCast>
<PossiblyInvalidOperand>
<code>$maxLines</code>
<code>$maxLinesConstraint++</code>
<code>1</code>
</PossiblyInvalidOperand>
<PossiblyNullArgument>
@ -9400,14 +9398,8 @@
<code><![CDATA[! $GLOBALS['finished']]]></code>
<code><![CDATA[$GLOBALS['finished']]]></code>
</RedundantCondition>
<ReferenceConstraintViolation>
<code>$sqlStatements</code>
</ReferenceConstraintViolation>
</file>
<file src="src/Plugins/Import/ImportOds.php">
<InvalidArgument>
<code>$sqlStatements</code>
</InvalidArgument>
<InvalidArrayOffset>
<code><![CDATA[$GLOBALS['timeout_passed']]]></code>
</InvalidArrayOffset>
@ -9493,6 +9485,10 @@
</PossiblyUnusedReturnValue>
</file>
<file src="src/Plugins/Import/ImportShp.php">
<DeprecatedMethod>
<code>Config::getInstance()</code>
<code>DatabaseInterface::getInstance()</code>
</DeprecatedMethod>
<InvalidArrayOffset>
<code><![CDATA[$GLOBALS['buffer']]]></code>
<code><![CDATA[$GLOBALS['eof']]]></code>
@ -9503,22 +9499,16 @@
<code><![CDATA[$GLOBALS['buffer']]]></code>
<code><![CDATA[$GLOBALS['buffer']]]></code>
<code><![CDATA[$GLOBALS['importHandle']]]></code>
<code>$dbfFileName</code>
<code>$dbfFilePath</code>
<code>$dbfFilePath</code>
<code>$extracted</code>
<code>$result</code>
<code><![CDATA[$shp->getDBFHeader()]]></code>
<code>$gisType</code>
</MixedArgument>
<MixedArrayAccess>
<code>$c[0]</code>
<code>$dbfHeader[$n]</code>
<code>$dbfHeader[$n][0]</code>
</MixedArrayAccess>
<MixedArrayAssignment>
<code>$analyses[$tableNo][Import::FORMATTEDSQL]</code>
<code>$analyses[$tableNo][Import::FORMATTEDSQL][$spatialCol]</code>
<code>$analyses[$tableNo][Import::TYPES]</code>
<code>$analyses[$tableNo][Import::TYPES][$spatialCol]</code>
</MixedArrayAssignment>
<MixedArrayOffset>
@ -9529,38 +9519,29 @@
<code><![CDATA[$GLOBALS['eof']]]></code>
<code><![CDATA[$GLOBALS['importHandle']]]></code>
<code><![CDATA[$GLOBALS['local_import_file']]]></code>
<code><![CDATA[$GLOBALS['message']]]></code>
<code><![CDATA[$GLOBALS['message']]]></code>
<code><![CDATA[$GLOBALS['message']]]></code>
<code>$analyses[]</code>
<code>$c</code>
<code>$colNames[]</code>
<code>$config</code>
<code>$dbfFileName</code>
<code>$dbfFileName</code>
<code>$dbfHeader</code>
<code>$extracted</code>
<code>$result</code>
<code>$temp</code>
</MixedAssignment>
<MixedOperand>
<code><![CDATA[$GLOBALS['buffer']]]></code>
<code>$dbfFileName</code>
<code>$temp</code>
<code><![CDATA[$gisObj->getShape($record->shpData)]]></code>
</MixedOperand>
<MixedPropertyFetch>
<code><![CDATA[$config->settings]]></code>
</MixedPropertyFetch>
<MixedReturnTypeCoercion>
<code>$sqlStatements</code>
<code>string[]</code>
</MixedReturnTypeCoercion>
<PossiblyInvalidArrayAssignment>
<code>$analyses[$tableNo][Import::FORMATTEDSQL]</code>
<code>$analyses[$tableNo][Import::TYPES]</code>
</PossiblyInvalidArrayAssignment>
<PossiblyNullArgument>
<code><![CDATA[$GLOBALS['buffer']]]></code>
<code><![CDATA[$GLOBALS['buffer']]]></code>
<code><![CDATA[$GLOBALS['import_file']]]></code>
<code><![CDATA[$GLOBALS['import_file']]]></code>
<code><![CDATA[$GLOBALS['import_file']]]></code>
<code><![CDATA[$GLOBALS['import_file']]]></code>
<code><![CDATA[$shp->getDBFHeader()]]></code>
</PossiblyNullArgument>
<PossiblyNullIterator>
<code><![CDATA[$shp->getDBFHeader()]]></code>
</PossiblyNullIterator>
<PossiblyUnusedReturnValue>
<code>string[]</code>
</PossiblyUnusedReturnValue>
@ -9746,7 +9727,6 @@
<code><![CDATA[$_SESSION[$GLOBALS['SESSION_KEY']][$id]]]></code>
<code><![CDATA[$_SESSION[$GLOBALS['SESSION_KEY']][$id]]]></code>
<code><![CDATA[$ret['complete']]]></code>
<code><![CDATA[$ret['complete']]]></code>
<code><![CDATA[$ret['finished']]]></code>
<code><![CDATA[$ret['percent']]]></code>
<code><![CDATA[$ret['total']]]></code>
@ -15365,6 +15345,7 @@
</InvalidArrayOffset>
<MixedArgument>
<code><![CDATA[$GLOBALS['import_notice']]]></code>
<code><![CDATA[$GLOBALS['import_notice']]]></code>
</MixedArgument>
<RedundantCondition>
<code>assertFalse</code>
@ -16011,6 +15992,9 @@
</MixedArrayAccess>
</file>
<file src="test/classes/UtilTest.php">
<ArgumentTypeCoercion>
<code>$tz</code>
</ArgumentTypeCoercion>
<DeprecatedMethod>
<code>Config::getInstance()</code>
<code>Config::getInstance()</code>