Upgrade to Psalm v6

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2025-01-26 14:16:31 +00:00
parent 7826c9d7a3
commit 34d955f41e
4 changed files with 428 additions and 206 deletions

View File

@ -115,11 +115,11 @@
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^10.4",
"pragmarx/google2fa-qrcode": "^3.0",
"psalm/plugin-phpunit": "^0.18.4",
"psalm/plugin-phpunit": "^0.19",
"roave/security-advisories": "dev-latest",
"symfony/console": "^7.1",
"tecnickcom/tcpdf": "^6.4.4",
"vimeo/psalm": "^5.14",
"vimeo/psalm": "^6",
"web-auth/webauthn-lib": "^4.9"
},
"extra": {

486
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ebd5f44fa6a26180c91fee67cdf7022a",
"content-hash": "52fd8b22ba2c72e28d37e33259333920",
"packages": [
{
"name": "composer/ca-bundle",
@ -2253,43 +2253,36 @@
"packages-dev": [
{
"name": "amphp/amp",
"version": "v2.6.4",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/amphp/amp.git",
"reference": "ded3d9be08f526089eb7ee8d9f16a9768f9dec2d"
"reference": "138801fb68cfc9c329da8a7b39d01ce7291ee4b0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/amp/zipball/ded3d9be08f526089eb7ee8d9f16a9768f9dec2d",
"reference": "ded3d9be08f526089eb7ee8d9f16a9768f9dec2d",
"url": "https://api.github.com/repos/amphp/amp/zipball/138801fb68cfc9c329da8a7b39d01ce7291ee4b0",
"reference": "138801fb68cfc9c329da8a7b39d01ce7291ee4b0",
"shasum": ""
},
"require": {
"php": ">=7.1"
"php": ">=8.1",
"revolt/event-loop": "^1 || ^0.2"
},
"require-dev": {
"amphp/php-cs-fixer-config": "dev-master",
"amphp/phpunit-util": "^1",
"ext-json": "*",
"jetbrains/phpstorm-stubs": "^2019.3",
"phpunit/phpunit": "^7 | ^8 | ^9",
"react/promise": "^2",
"vimeo/psalm": "^3.12"
"amphp/php-cs-fixer-config": "^2",
"phpunit/phpunit": "^9",
"psalm/phar": "5.23.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"autoload": {
"files": [
"lib/functions.php",
"lib/Internal/functions.php"
"src/functions.php",
"src/Future/functions.php",
"src/Internal/functions.php"
],
"psr-4": {
"Amp\\": "lib"
"Amp\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@ -2297,10 +2290,6 @@
"MIT"
],
"authors": [
{
"name": "Daniel Lowrey",
"email": "rdlowrey@php.net"
},
{
"name": "Aaron Piotrowski",
"email": "aaron@trowski.com"
@ -2312,6 +2301,10 @@
{
"name": "Niklas Keller",
"email": "me@kelunik.com"
},
{
"name": "Daniel Lowrey",
"email": "rdlowrey@php.net"
}
],
"description": "A non-blocking concurrency framework for PHP applications.",
@ -2328,9 +2321,8 @@
"promise"
],
"support": {
"irc": "irc://irc.freenode.org/amphp",
"issues": "https://github.com/amphp/amp/issues",
"source": "https://github.com/amphp/amp/tree/v2.6.4"
"source": "https://github.com/amphp/amp/tree/v3.0.2"
},
"funding": [
{
@ -2338,41 +2330,45 @@
"type": "github"
}
],
"time": "2024-03-21T18:52:26+00:00"
"time": "2024-05-10T21:37:46+00:00"
},
{
"name": "amphp/byte-stream",
"version": "v1.8.2",
"version": "v2.1.1",
"source": {
"type": "git",
"url": "https://github.com/amphp/byte-stream.git",
"reference": "4f0e968ba3798a423730f567b1b50d3441c16ddc"
"reference": "daa00f2efdbd71565bf64ffefa89e37542addf93"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/byte-stream/zipball/4f0e968ba3798a423730f567b1b50d3441c16ddc",
"reference": "4f0e968ba3798a423730f567b1b50d3441c16ddc",
"url": "https://api.github.com/repos/amphp/byte-stream/zipball/daa00f2efdbd71565bf64ffefa89e37542addf93",
"reference": "daa00f2efdbd71565bf64ffefa89e37542addf93",
"shasum": ""
},
"require": {
"amphp/amp": "^2",
"php": ">=7.1"
"amphp/amp": "^3",
"amphp/parser": "^1.1",
"amphp/pipeline": "^1",
"amphp/serialization": "^1",
"amphp/sync": "^2",
"php": ">=8.1",
"revolt/event-loop": "^1 || ^0.2.3"
},
"require-dev": {
"amphp/php-cs-fixer-config": "dev-master",
"amphp/phpunit-util": "^1.4",
"friendsofphp/php-cs-fixer": "^2.3",
"jetbrains/phpstorm-stubs": "^2019.3",
"phpunit/phpunit": "^6 || ^7 || ^8",
"psalm/phar": "^3.11.4"
"amphp/php-cs-fixer-config": "^2",
"amphp/phpunit-util": "^3",
"phpunit/phpunit": "^9",
"psalm/phar": "5.22.1"
},
"type": "library",
"autoload": {
"files": [
"lib/functions.php"
"src/functions.php",
"src/Internal/functions.php"
],
"psr-4": {
"Amp\\ByteStream\\": "lib"
"Amp\\ByteStream\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@ -2401,7 +2397,7 @@
],
"support": {
"issues": "https://github.com/amphp/byte-stream/issues",
"source": "https://github.com/amphp/byte-stream/tree/v1.8.2"
"source": "https://github.com/amphp/byte-stream/tree/v2.1.1"
},
"funding": [
{
@ -2409,7 +2405,269 @@
"type": "github"
}
],
"time": "2024-04-13T18:00:56+00:00"
"time": "2024-02-17T04:49:38+00:00"
},
{
"name": "amphp/parser",
"version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/amphp/parser.git",
"reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7",
"reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7",
"shasum": ""
},
"require": {
"php": ">=7.4"
},
"require-dev": {
"amphp/php-cs-fixer-config": "^2",
"phpunit/phpunit": "^9",
"psalm/phar": "^5.4"
},
"type": "library",
"autoload": {
"psr-4": {
"Amp\\Parser\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Aaron Piotrowski",
"email": "aaron@trowski.com"
},
{
"name": "Niklas Keller",
"email": "me@kelunik.com"
}
],
"description": "A generator parser to make streaming parsers simple.",
"homepage": "https://github.com/amphp/parser",
"keywords": [
"async",
"non-blocking",
"parser",
"stream"
],
"support": {
"issues": "https://github.com/amphp/parser/issues",
"source": "https://github.com/amphp/parser/tree/v1.1.1"
},
"funding": [
{
"url": "https://github.com/amphp",
"type": "github"
}
],
"time": "2024-03-21T19:16:53+00:00"
},
{
"name": "amphp/pipeline",
"version": "v1.2.2",
"source": {
"type": "git",
"url": "https://github.com/amphp/pipeline.git",
"reference": "97cbf289f4d8877acfe58dd90ed5a4370a43caa4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/pipeline/zipball/97cbf289f4d8877acfe58dd90ed5a4370a43caa4",
"reference": "97cbf289f4d8877acfe58dd90ed5a4370a43caa4",
"shasum": ""
},
"require": {
"amphp/amp": "^3",
"php": ">=8.1",
"revolt/event-loop": "^1"
},
"require-dev": {
"amphp/php-cs-fixer-config": "^2",
"amphp/phpunit-util": "^3",
"phpunit/phpunit": "^9",
"psalm/phar": "^5.18"
},
"type": "library",
"autoload": {
"psr-4": {
"Amp\\Pipeline\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Aaron Piotrowski",
"email": "aaron@trowski.com"
},
{
"name": "Niklas Keller",
"email": "me@kelunik.com"
}
],
"description": "Asynchronous iterators and operators.",
"homepage": "https://amphp.org/pipeline",
"keywords": [
"amp",
"amphp",
"async",
"io",
"iterator",
"non-blocking"
],
"support": {
"issues": "https://github.com/amphp/pipeline/issues",
"source": "https://github.com/amphp/pipeline/tree/v1.2.2"
},
"funding": [
{
"url": "https://github.com/amphp",
"type": "github"
}
],
"time": "2025-01-19T15:42:46+00:00"
},
{
"name": "amphp/serialization",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/amphp/serialization.git",
"reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/serialization/zipball/693e77b2fb0b266c3c7d622317f881de44ae94a1",
"reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"require-dev": {
"amphp/php-cs-fixer-config": "dev-master",
"phpunit/phpunit": "^9 || ^8 || ^7"
},
"type": "library",
"autoload": {
"files": [
"src/functions.php"
],
"psr-4": {
"Amp\\Serialization\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Aaron Piotrowski",
"email": "aaron@trowski.com"
},
{
"name": "Niklas Keller",
"email": "me@kelunik.com"
}
],
"description": "Serialization tools for IPC and data storage in PHP.",
"homepage": "https://github.com/amphp/serialization",
"keywords": [
"async",
"asynchronous",
"serialization",
"serialize"
],
"support": {
"issues": "https://github.com/amphp/serialization/issues",
"source": "https://github.com/amphp/serialization/tree/master"
},
"time": "2020-03-25T21:39:07+00:00"
},
{
"name": "amphp/sync",
"version": "v2.3.0",
"source": {
"type": "git",
"url": "https://github.com/amphp/sync.git",
"reference": "217097b785130d77cfcc58ff583cf26cd1770bf1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/amphp/sync/zipball/217097b785130d77cfcc58ff583cf26cd1770bf1",
"reference": "217097b785130d77cfcc58ff583cf26cd1770bf1",
"shasum": ""
},
"require": {
"amphp/amp": "^3",
"amphp/pipeline": "^1",
"amphp/serialization": "^1",
"php": ">=8.1",
"revolt/event-loop": "^1 || ^0.2"
},
"require-dev": {
"amphp/php-cs-fixer-config": "^2",
"amphp/phpunit-util": "^3",
"phpunit/phpunit": "^9",
"psalm/phar": "5.23"
},
"type": "library",
"autoload": {
"files": [
"src/functions.php"
],
"psr-4": {
"Amp\\Sync\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Aaron Piotrowski",
"email": "aaron@trowski.com"
},
{
"name": "Niklas Keller",
"email": "me@kelunik.com"
},
{
"name": "Stephen Coakley",
"email": "me@stephencoakley.com"
}
],
"description": "Non-blocking synchronization primitives for PHP based on Amp and Revolt.",
"homepage": "https://github.com/amphp/sync",
"keywords": [
"async",
"asynchronous",
"mutex",
"semaphore",
"synchronization"
],
"support": {
"issues": "https://github.com/amphp/sync/issues",
"source": "https://github.com/amphp/sync/tree/v2.3.0"
},
"funding": [
{
"url": "https://github.com/amphp",
"type": "github"
}
],
"time": "2024-08-03T19:31:26+00:00"
},
{
"name": "bacon/bacon-qr-code",
@ -3748,25 +4006,27 @@
},
{
"name": "nikic/php-parser",
"version": "v4.19.4",
"version": "v5.4.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2"
"reference": "447a020a1f875a434d62f2a401f53b82a396e494"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2",
"reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494",
"reference": "447a020a1f875a434d62f2a401f53b82a396e494",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-json": "*",
"ext-tokenizer": "*",
"php": ">=7.1"
"php": ">=7.4"
},
"require-dev": {
"ircmaxell/php-yacc": "^0.0.7",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
"phpunit/phpunit": "^9.0"
},
"bin": [
"bin/php-parse"
@ -3774,7 +4034,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.9-dev"
"dev-master": "5.0-dev"
}
},
"autoload": {
@ -3798,9 +4058,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4"
"source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0"
},
"time": "2024-09-29T15:01:53+00:00"
"time": "2024-12-30T11:07:19+00:00"
},
{
"name": "nyholm/psr7",
@ -5242,24 +5502,24 @@
},
{
"name": "psalm/plugin-phpunit",
"version": "0.18.4",
"version": "0.19.2",
"source": {
"type": "git",
"url": "https://github.com/psalm/psalm-plugin-phpunit.git",
"reference": "e4ab3096653d9eb6f6d0ea5f4461898d59ae4dbc"
"reference": "7b7a5cde988f83ccdbdf3ebaecd88192e01c5eb1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/e4ab3096653d9eb6f6d0ea5f4461898d59ae4dbc",
"reference": "e4ab3096653d9eb6f6d0ea5f4461898d59ae4dbc",
"url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/7b7a5cde988f83ccdbdf3ebaecd88192e01c5eb1",
"reference": "7b7a5cde988f83ccdbdf3ebaecd88192e01c5eb1",
"shasum": ""
},
"require": {
"composer/package-versions-deprecated": "^1.10",
"composer/semver": "^1.4 || ^2.0 || ^3.0",
"ext-simplexml": "*",
"php": "^7.1 || ^8.0",
"vimeo/psalm": "dev-master || dev-4.x || ^4.7.1 || ^5@beta || ^5.0"
"php": ">=8.1",
"vimeo/psalm": "dev-master || ^6"
},
"conflict": {
"phpunit/phpunit": "<7.5"
@ -5296,9 +5556,9 @@
"description": "Psalm plugin for PHPUnit",
"support": {
"issues": "https://github.com/psalm/psalm-plugin-phpunit/issues",
"source": "https://github.com/psalm/psalm-plugin-phpunit/tree/0.18.4"
"source": "https://github.com/psalm/psalm-plugin-phpunit/tree/0.19.2"
},
"time": "2022-12-03T07:47:07+00:00"
"time": "2025-01-26T11:39:17+00:00"
},
{
"name": "psr/clock",
@ -5450,6 +5710,78 @@
},
"time": "2023-09-23T14:17:50+00:00"
},
{
"name": "revolt/event-loop",
"version": "v1.0.6",
"source": {
"type": "git",
"url": "https://github.com/revoltphp/event-loop.git",
"reference": "25de49af7223ba039f64da4ae9a28ec2d10d0254"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/revoltphp/event-loop/zipball/25de49af7223ba039f64da4ae9a28ec2d10d0254",
"reference": "25de49af7223ba039f64da4ae9a28ec2d10d0254",
"shasum": ""
},
"require": {
"php": ">=8.1"
},
"require-dev": {
"ext-json": "*",
"jetbrains/phpstorm-stubs": "^2019.3",
"phpunit/phpunit": "^9",
"psalm/phar": "^5.15"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Revolt\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Aaron Piotrowski",
"email": "aaron@trowski.com"
},
{
"name": "Cees-Jan Kiewiet",
"email": "ceesjank@gmail.com"
},
{
"name": "Christian Lück",
"email": "christian@clue.engineering"
},
{
"name": "Niklas Keller",
"email": "me@kelunik.com"
}
],
"description": "Rock-solid event loop for concurrent PHP applications.",
"keywords": [
"async",
"asynchronous",
"concurrency",
"event",
"event-loop",
"non-blocking",
"scheduler"
],
"support": {
"issues": "https://github.com/revoltphp/event-loop/issues",
"source": "https://github.com/revoltphp/event-loop/tree/v1.0.6"
},
"time": "2023-11-30T05:34:44+00:00"
},
{
"name": "roave/security-advisories",
"version": "dev-latest",
@ -8318,21 +8650,21 @@
},
{
"name": "vimeo/psalm",
"version": "5.26.1",
"version": "6.0.0",
"source": {
"type": "git",
"url": "https://github.com/vimeo/psalm.git",
"reference": "d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"
"reference": "b8e96bb617bf59382113b1b56cef751f648a7dc9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/d747f6500b38ac4f7dfc5edbcae6e4b637d7add0",
"reference": "d747f6500b38ac4f7dfc5edbcae6e4b637d7add0",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/b8e96bb617bf59382113b1b56cef751f648a7dc9",
"reference": "b8e96bb617bf59382113b1b56cef751f648a7dc9",
"shasum": ""
},
"require": {
"amphp/amp": "^2.4.2",
"amphp/byte-stream": "^1.5",
"amphp/amp": "^3",
"amphp/byte-stream": "^2",
"composer-runtime-api": "^2",
"composer/semver": "^1.4 || ^2.0 || ^3.0",
"composer/xdebug-handler": "^2.0 || ^3.0",
@ -8345,26 +8677,24 @@
"ext-simplexml": "*",
"ext-tokenizer": "*",
"felixfbecker/advanced-json-rpc": "^3.1",
"felixfbecker/language-server-protocol": "^1.5.2",
"felixfbecker/language-server-protocol": "^1.5.3",
"fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0",
"netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0",
"nikic/php-parser": "^4.17",
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"nikic/php-parser": "^5.0.0",
"php": "~8.1.17 || ~8.2.4 || ~8.3.0 || ~8.4.0",
"sebastian/diff": "^4.0 || ^5.0 || ^6.0",
"spatie/array-to-xml": "^2.17.0 || ^3.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"
},
"provide": {
"psalm/psalm": "self.version"
},
"require-dev": {
"amphp/phpunit-util": "^2.0",
"amphp/phpunit-util": "^3",
"bamarni/composer-bin-plugin": "^1.4",
"brianium/paratest": "^6.9",
"dg/bypass-finals": "^1.5",
"ext-curl": "*",
"mockery/mockery": "^1.5",
"nunomaduro/mock-final-classes": "^1.1",
@ -8372,7 +8702,7 @@
"phpstan/phpdoc-parser": "^1.6",
"phpunit/phpunit": "^9.6",
"psalm/plugin-mockery": "^1.1",
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-phpunit": "^0.19",
"slevomat/coding-standard": "^8.4",
"squizlabs/php_codesniffer": "^3.6",
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0"
@ -8395,7 +8725,9 @@
"dev-2.x": "2.x-dev",
"dev-3.x": "3.x-dev",
"dev-4.x": "4.x-dev",
"dev-master": "5.x-dev"
"dev-5.x": "5.x-dev",
"dev-6.x": "6.x-dev",
"dev-master": "7.x-dev"
}
},
"autoload": {
@ -8424,7 +8756,7 @@
"issues": "https://github.com/vimeo/psalm/issues",
"source": "https://github.com/vimeo/psalm"
},
"time": "2024-09-08T18:53:08+00:00"
"time": "2025-01-26T12:03:19+00:00"
},
{
"name": "web-auth/cose-lib",

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
<files psalm-version="6.0.0@b8e96bb617bf59382113b1b56cef751f648a7dc9">
<file src="app/services_loader.php">
<MixedArgument>
<code><![CDATA[$argumentName]]></code>
@ -282,11 +282,6 @@
<code><![CDATA[$value]]></code>
<code><![CDATA[$verbose]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[mixed[]]]></code>
<code><![CDATA[mixed[]]]></code>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$port]]></code>
<code><![CDATA[$this->getValue($path . '/host')]]></code>
@ -583,9 +578,6 @@
<code><![CDATA[$vname]]></code>
<code><![CDATA[self::$validators]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[mixed[]]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$ip]]></code>
</MixedOperand>
@ -677,9 +669,6 @@
<code><![CDATA[$value]]></code>
<code><![CDATA[$value]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[array|false]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$foreigners[$column]]]></code>
</MixedReturnStatement>
@ -1484,9 +1473,6 @@
<code><![CDATA[$bookmarkVariables]]></code>
<code><![CDATA[$consoleMessageId]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[Response]]></code>
</MixedInferredReturnType>
<MixedPropertyTypeCoercion>
<code><![CDATA[['db' => Current::$database, 'table' => Current::$table]]]></code>
</MixedPropertyTypeCoercion>
@ -2441,9 +2427,6 @@
<InvalidPropertyAssignmentValue>
<code><![CDATA[array_values($_POST['rows_to_delete'])]]></code>
</InvalidPropertyAssignmentValue>
<MixedInferredReturnType>
<code><![CDATA[Response]]></code>
</MixedInferredReturnType>
<PossiblyUnusedReturnValue>
<code><![CDATA[Response]]></code>
</PossiblyUnusedReturnValue>
@ -3522,9 +3505,6 @@
<MixedAssignment>
<code><![CDATA[$params]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[mixed[]]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$params]]></code>
<code><![CDATA[$params]]></code>
@ -3926,11 +3906,6 @@
<code><![CDATA[$this->versionComment]]></code>
<code><![CDATA[$this->versionString]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[list<string>]]></code>
<code><![CDATA[mixed[]]]></code>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$a['Data_length']]]></code>
<code><![CDATA[$b['Data_length']]]></code>
@ -4220,9 +4195,6 @@
<code><![CDATA[$relationalDisplay]]></code>
<code><![CDATA[$value]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[Message]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$_SESSION['tmpval']['max_rows']]]></code>
<code><![CDATA[$_SESSION['tmpval']['max_rows']]]></code>
@ -4623,9 +4595,6 @@
<MixedAssignment>
<code><![CDATA[$table]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[array{db:string, table:string}[]]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[json_decode($value, true)]]></code>
</MixedReturnStatement>
@ -4711,9 +4680,6 @@
<MixedAssignment>
<code><![CDATA[$this->previousMessages]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[FlashMessageList]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$this->storage[self::STORAGE_KEY]]]></code>
</MixedReturnStatement>
@ -5076,10 +5042,6 @@
<code><![CDATA[$position]]></code>
<code><![CDATA[$start]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[int|null]]></code>
<code><![CDATA[stdClass|null]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$fanout[256]]]></code>
<code><![CDATA[$offset]]></code>
@ -5280,9 +5242,6 @@
<code><![CDATA[bool]]></code>
<code><![CDATA[bool]]></code>
</PossiblyUnusedReturnValue>
<TooFewArguments>
<code><![CDATA[imagefilledpolygon($this->image, $points, $color)]]></code>
</TooFewArguments>
</file>
<file src="src/Import/Ajax.php">
<MixedArrayAccess>
@ -5520,9 +5479,6 @@
<MixedAssignment>
<code><![CDATA[$binaryLogs]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[mixed[]]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[SessionCache::get($cacheKey)]]></code>
</MixedReturnStatement>
@ -7116,9 +7072,6 @@
<code><![CDATA[$table]]></code>
<code><![CDATA[$tableKey]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$ffield]]></code>
<code><![CDATA[$ftable]]></code>
@ -7196,50 +7149,27 @@
</RedundantCondition>
</file>
<file src="src/Plugins/Import/ImportOds.php">
<MixedArgument>
<code><![CDATA[$cellAttrs]]></code>
<code><![CDATA[$text]]></code>
</MixedArgument>
<MixedArgumentTypeCoercion>
<code><![CDATA[$row]]></code>
<code><![CDATA[$row]]></code>
<code><![CDATA[$values]]></code>
</MixedArgumentTypeCoercion>
<MixedArrayAccess>
<code><![CDATA[$attr['number-columns-repeated']]]></code>
<code><![CDATA[$attr['number-columns-repeated']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$attr]]></code>
<code><![CDATA[$attr]]></code>
<code><![CDATA[$cellAttrs]]></code>
<code><![CDATA[$paragraphValue]]></code>
<code><![CDATA[$text]]></code>
<code><![CDATA[$values[]]]></code>
<code><![CDATA[$values[]]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[__toString]]></code>
<code><![CDATA[__toString]]></code>
<code><![CDATA[attributes]]></code>
<code><![CDATA[attributes]]></code>
<code><![CDATA[attributes]]></code>
<code><![CDATA[children]]></code>
<code><![CDATA[count]]></code>
<code><![CDATA[getName]]></code>
</MixedMethodCall>
<PossiblyNullArgument>
<code><![CDATA[$cellAttrs]]></code>
<code><![CDATA[$sheets]]></code>
</PossiblyNullArgument>
<PossiblyNullArrayAccess>
<code><![CDATA[$attr['number-columns-repeated']]]></code>
<code><![CDATA[$attr['number-columns-repeated']]]></code>
<code><![CDATA[$tblAttr['name']]]></code>
</PossiblyNullArrayAccess>
<PossiblyNullPropertyFetch>
<code><![CDATA[$xml->children('office', true)->body]]></code>
</PossiblyNullPropertyFetch>
<PossiblyNullReference>
<code><![CDATA[count]]></code>
</PossiblyNullReference>
<PossiblyUnusedReturnValue>
<code><![CDATA[string[]]]></code>
</PossiblyUnusedReturnValue>
<RedundantCondition>
<code><![CDATA[$paragraphValue === '' && isset($paragraph->{'a'})]]></code>
</RedundantCondition>
</file>
<file src="src/Plugins/Import/ImportShp.php">
<DeprecatedMethod>
@ -7302,18 +7232,8 @@
</PossiblyUnusedReturnValue>
</file>
<file src="src/Plugins/Import/ImportXml.php">
<MixedArrayAccess>
<code><![CDATA[$attrs['name']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$attrs]]></code>
<code><![CDATA[$val2]]></code>
<code><![CDATA[$val3]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[attributes]]></code>
</MixedMethodCall>
<PossiblyNullArrayAccess>
<code><![CDATA[$attrs['name']]]></code>
<code><![CDATA[$dbAttr['charset']]]></code>
<code><![CDATA[$dbAttr['collation']]]></code>
<code><![CDATA[$dbAttr['name']]]></code>
@ -7328,6 +7248,10 @@
<PossiblyUnusedReturnValue>
<code><![CDATA[string[]]]></code>
</PossiblyUnusedReturnValue>
<UnnecessaryVarAnnotation>
<code><![CDATA[SimpleXMLElement]]></code>
<code><![CDATA[SimpleXMLElement]]></code>
</UnnecessaryVarAnnotation>
</file>
<file src="src/Plugins/Import/Upload/UploadNoplugin.php">
<MixedArgument>
@ -7339,9 +7263,6 @@
<MixedArrayAssignment>
<code><![CDATA[$_SESSION[Ajax::SESSION_KEY][$id]]]></code>
</MixedArrayAssignment>
<MixedInferredReturnType>
<code><![CDATA[array|null]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$_SESSION[Ajax::SESSION_KEY][$id]]]></code>
</MixedReturnStatement>
@ -7369,9 +7290,6 @@
<code><![CDATA[$_SESSION[Ajax::SESSION_KEY][$id]]]></code>
<code><![CDATA[$ret]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[array|null]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$ret]]></code>
<code><![CDATA[$ret]]></code>
@ -7415,9 +7333,6 @@
<code><![CDATA[$ret['total']]]></code>
<code><![CDATA[$status]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[array|null]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$ret['complete']]]></code>
</MixedOperand>
@ -7896,9 +7811,6 @@
<DeprecatedMethod>
<code><![CDATA[Config::getInstance()]]></code>
</DeprecatedMethod>
<MixedInferredReturnType>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$options[0]]]></code>
<code><![CDATA[$options[1]]]></code>
@ -8771,11 +8683,6 @@
<code><![CDATA[$sortCol]]></code>
<code><![CDATA[$unlimNumRows]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[int]]></code>
<code><![CDATA[int]]></code>
<code><![CDATA[int|numeric-string]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$_SESSION['tmpval']['max_rows']]]></code>
<code><![CDATA[$_SESSION['tmpval']['pos']]]></code>
@ -8915,9 +8822,6 @@
<code><![CDATA[$mroongaData]]></code>
<code><![CDATA[$mysqlVars[$row['Variable_name']]]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$decodedData['disk_usage']]]></code>
<code><![CDATA[$decodedData['disk_usage']]]></code>
@ -9135,9 +9039,6 @@
<MixedAssignment>
<code><![CDATA[$index]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[mixed[]]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$index[0]]]></code>
</MixedOperand>
@ -9276,9 +9177,6 @@
<MixedArrayAssignment>
<code><![CDATA[self::$trackingCache[$dbName][$tableName]]]></code>
</MixedArrayAssignment>
<MixedInferredReturnType>
<code><![CDATA[bool]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$result['identifier']]]></code>
</MixedOperand>
@ -9552,7 +9450,6 @@
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
</DeprecatedMethod>
<InvalidArrayOffset>
<code><![CDATA[$byteUnits[$d]]]></code>
<code><![CDATA[$units[$d]]]></code>
</InvalidArrayOffset>
<MixedArgument>
@ -9614,9 +9511,6 @@
<code><![CDATA[$unit]]></code>
<code><![CDATA[$value]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[int]]></code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$row['Column_name']]]></code>
<code><![CDATA[$unit]]></code>
@ -9670,9 +9564,6 @@
<code><![CDATA[$buffer]]></code>
<code><![CDATA[$buffer]]></code>
</MixedArgument>
<MixedInferredReturnType>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$buffer]]></code>
</MixedReturnStatement>
@ -9701,9 +9592,6 @@
<code><![CDATA[$context['http']['content']]]></code>
<code><![CDATA[$httpStatus]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code><![CDATA[string|bool|null]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$response]]></code>
</MixedReturnStatement>

View File

@ -12,6 +12,8 @@
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
ignoreInternalFunctionFalseReturn="true"
ignoreInternalFunctionNullReturn="true"
>
<projectFiles>
<directory name="app"/>