Updated phpstan to 2.0

This commit is contained in:
Jan Böhmer 2024-12-28 14:56:44 +01:00
parent 04a0369d56
commit 0ceee1582e
2 changed files with 123 additions and 123 deletions

View file

@ -97,15 +97,15 @@
"require-dev": {
"dama/doctrine-test-bundle": "^v8.0.0",
"doctrine/doctrine-fixtures-bundle": "^3.2",
"ekino/phpstan-banned-code": "^v1.0.0",
"ekino/phpstan-banned-code": "^v3.0.0",
"jbtronics/translation-editor-bundle": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.4.7",
"phpstan/phpstan-doctrine": "^1.2.11",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-symfony": "^1.1.7",
"phpstan/phpstan": "^2.0.4",
"phpstan/phpstan-doctrine": "^2.0.1",
"phpstan/phpstan-strict-rules": "^2.0.1",
"phpstan/phpstan-symfony": "^2.0.0",
"phpunit/phpunit": "^9.5",
"rector/rector": "^1.1.1",
"rector/rector": "^2.0.4",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "6.4.*",
"symfony/css-selector": "6.4.*",

234
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": "465fa2ab7f9f8dad2b8cfbeaa640c136",
"content-hash": "e8853e37e0455428c8e43b429c11cf11",
"packages": [
{
"name": "amphp/amp",
@ -3027,16 +3027,16 @@
},
{
"name": "egulias/email-validator",
"version": "4.0.2",
"version": "4.0.3",
"source": {
"type": "git",
"url": "https://github.com/egulias/EmailValidator.git",
"reference": "ebaaf5be6c0286928352e054f2d5125608e5405e"
"reference": "b115554301161fa21467629f1e1391c1936de517"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e",
"reference": "ebaaf5be6c0286928352e054f2d5125608e5405e",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517",
"reference": "b115554301161fa21467629f1e1391c1936de517",
"shasum": ""
},
"require": {
@ -3082,7 +3082,7 @@
],
"support": {
"issues": "https://github.com/egulias/EmailValidator/issues",
"source": "https://github.com/egulias/EmailValidator/tree/4.0.2"
"source": "https://github.com/egulias/EmailValidator/tree/4.0.3"
},
"funding": [
{
@ -3090,7 +3090,7 @@
"type": "github"
}
],
"time": "2023-10-06T06:47:41+00:00"
"time": "2024-12-27T00:36:43+00:00"
},
{
"name": "erusev/parsedown",
@ -8515,12 +8515,12 @@
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/contracts",
"name": "symfony/contracts"
},
"branch-alias": {
"dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@ -8979,12 +8979,12 @@
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/contracts",
"name": "symfony/contracts"
},
"branch-alias": {
"dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@ -9384,12 +9384,12 @@
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/contracts",
"name": "symfony/contracts"
},
"branch-alias": {
"dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@ -12810,12 +12810,12 @@
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/contracts",
"name": "symfony/contracts"
},
"branch-alias": {
"dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@ -13200,12 +13200,12 @@
},
"type": "library",
"extra": {
"thanks": {
"url": "https://github.com/symfony/contracts",
"name": "symfony/contracts"
},
"branch-alias": {
"dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@ -14188,16 +14188,16 @@
},
{
"name": "tecnickcom/tc-lib-barcode",
"version": "2.4.1",
"version": "2.4.2",
"source": {
"type": "git",
"url": "https://github.com/tecnickcom/tc-lib-barcode.git",
"reference": "9499e6b9a5845573c6f61936463850e82bacd49b"
"reference": "cd5d8029eeaf6225b9ff4692364c4c473191e487"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tecnickcom/tc-lib-barcode/zipball/9499e6b9a5845573c6f61936463850e82bacd49b",
"reference": "9499e6b9a5845573c6f61936463850e82bacd49b",
"url": "https://api.github.com/repos/tecnickcom/tc-lib-barcode/zipball/cd5d8029eeaf6225b9ff4692364c4c473191e487",
"reference": "cd5d8029eeaf6225b9ff4692364c4c473191e487",
"shasum": ""
},
"require": {
@ -14205,14 +14205,14 @@
"ext-date": "*",
"ext-gd": "*",
"ext-pcre": "*",
"php": ">=8.0",
"php": ">=8.1",
"tecnickcom/tc-lib-color": "^2.2"
},
"require-dev": {
"pdepend/pdepend": "2.13.0",
"phpmd/phpmd": "2.13.0",
"phpunit/phpunit": "10.1.2 || 9.6.13",
"squizlabs/php_codesniffer": "3.7.2"
"pdepend/pdepend": "2.16.2",
"phpmd/phpmd": "2.15.0",
"phpunit/phpunit": "11.5.2 || 10.5.40",
"squizlabs/php_codesniffer": "3.11.2"
},
"type": "library",
"autoload": {
@ -14276,7 +14276,7 @@
],
"support": {
"issues": "https://github.com/tecnickcom/tc-lib-barcode/issues",
"source": "https://github.com/tecnickcom/tc-lib-barcode/tree/2.4.1"
"source": "https://github.com/tecnickcom/tc-lib-barcode/tree/2.4.2"
},
"funding": [
{
@ -14284,31 +14284,31 @@
"type": "custom"
}
],
"time": "2024-12-23T11:43:55+00:00"
"time": "2024-12-25T10:47:45+00:00"
},
{
"name": "tecnickcom/tc-lib-color",
"version": "2.2.6",
"version": "2.2.7",
"source": {
"type": "git",
"url": "https://github.com/tecnickcom/tc-lib-color.git",
"reference": "f0f38cfd50bbeb3d40b4320bc1038e3e777e7b68"
"reference": "5fe3c1771ab577572b3304d11496745aff45db8e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tecnickcom/tc-lib-color/zipball/f0f38cfd50bbeb3d40b4320bc1038e3e777e7b68",
"reference": "f0f38cfd50bbeb3d40b4320bc1038e3e777e7b68",
"url": "https://api.github.com/repos/tecnickcom/tc-lib-color/zipball/5fe3c1771ab577572b3304d11496745aff45db8e",
"reference": "5fe3c1771ab577572b3304d11496745aff45db8e",
"shasum": ""
},
"require": {
"ext-pcre": "*",
"php": ">=8.0"
"php": ">=8.1"
},
"require-dev": {
"pdepend/pdepend": "2.13.0",
"phpmd/phpmd": "2.13.0",
"phpunit/phpunit": "10.1.2 || 9.6.13",
"squizlabs/php_codesniffer": "3.7.2"
"pdepend/pdepend": "2.16.2",
"phpmd/phpmd": "2.15.0",
"phpunit/phpunit": "11.5.2 || 10.5.40",
"squizlabs/php_codesniffer": "3.11.2"
},
"type": "library",
"autoload": {
@ -14345,7 +14345,7 @@
],
"support": {
"issues": "https://github.com/tecnickcom/tc-lib-color/issues",
"source": "https://github.com/tecnickcom/tc-lib-color/tree/2.2.6"
"source": "https://github.com/tecnickcom/tc-lib-color/tree/2.2.7"
},
"funding": [
{
@ -14353,7 +14353,7 @@
"type": "custom"
}
],
"time": "2024-12-23T11:42:18+00:00"
"time": "2024-12-24T16:32:19+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
@ -15664,27 +15664,27 @@
},
{
"name": "ekino/phpstan-banned-code",
"version": "v1.0.0",
"version": "v3.0.0",
"source": {
"type": "git",
"url": "https://github.com/ekino/phpstan-banned-code.git",
"reference": "4f0d7c8a0c9f5d222ffc24234aa6c5b3b71bf4c3"
"reference": "27122aa1783d6521e500c0c397c53244cfbde26f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ekino/phpstan-banned-code/zipball/4f0d7c8a0c9f5d222ffc24234aa6c5b3b71bf4c3",
"reference": "4f0d7c8a0c9f5d222ffc24234aa6c5b3b71bf4c3",
"url": "https://api.github.com/repos/ekino/phpstan-banned-code/zipball/27122aa1783d6521e500c0c397c53244cfbde26f",
"reference": "27122aa1783d6521e500c0c397c53244cfbde26f",
"shasum": ""
},
"require": {
"php": "^7.3 || ^8.0",
"phpstan/phpstan": "^1.0"
"php": "^8.1",
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.6",
"friendsofphp/php-cs-fixer": "^3.0",
"nikic/php-parser": "^4.3",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^9.5",
"symfony/var-dumper": "^5.0"
},
@ -15719,13 +15719,14 @@
"homepage": "https://github.com/ekino/phpstan-banned-code",
"keywords": [
"PHPStan",
"code quality"
"code quality",
"static analysis"
],
"support": {
"issues": "https://github.com/ekino/phpstan-banned-code/issues",
"source": "https://github.com/ekino/phpstan-banned-code/tree/v1.0.0"
"source": "https://github.com/ekino/phpstan-banned-code/tree/v3.0.0"
},
"time": "2021-11-02T08:37:34+00:00"
"time": "2024-11-13T09:57:22+00:00"
},
{
"name": "jbtronics/translation-editor-bundle",
@ -16083,20 +16084,20 @@
},
{
"name": "phpstan/phpstan",
"version": "1.12.13",
"version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "9b469068840cfa031e1deaf2fa1886d00e20680f"
"reference": "50d276fc3bf1430ec315f2f109bbde2769821524"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/9b469068840cfa031e1deaf2fa1886d00e20680f",
"reference": "9b469068840cfa031e1deaf2fa1886d00e20680f",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d276fc3bf1430ec315f2f109bbde2769821524",
"reference": "50d276fc3bf1430ec315f2f109bbde2769821524",
"shasum": ""
},
"require": {
"php": "^7.2|^8.0"
"php": "^7.4|^8.0"
},
"conflict": {
"phpstan/phpstan-shim": "*"
@ -16137,25 +16138,25 @@
"type": "github"
}
],
"time": "2024-12-17T17:00:20+00:00"
"time": "2024-12-17T17:14:01+00:00"
},
{
"name": "phpstan/phpstan-doctrine",
"version": "1.5.7",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-doctrine.git",
"reference": "231d3f795ed5ef54c98961fd3958868cbe091207"
"reference": "bdb6a835c5aa9725979694ae9b70591e180f4853"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/231d3f795ed5ef54c98961fd3958868cbe091207",
"reference": "231d3f795ed5ef54c98961fd3958868cbe091207",
"url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/bdb6a835c5aa9725979694ae9b70591e180f4853",
"reference": "bdb6a835c5aa9725979694ae9b70591e180f4853",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.12.12"
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^2.0.3"
},
"conflict": {
"doctrine/collections": "<1.0",
@ -16168,20 +16169,19 @@
"cache/array-adapter": "^1.1",
"composer/semver": "^3.3.2",
"cweagans/composer-patches": "^1.7.3",
"doctrine/annotations": "^1.11 || ^2.0",
"doctrine/annotations": "^2.0",
"doctrine/collections": "^1.6 || ^2.1",
"doctrine/common": "^2.7 || ^3.0",
"doctrine/dbal": "^2.13.8 || ^3.3.3",
"doctrine/dbal": "^3.3.8",
"doctrine/lexer": "^2.0 || ^3.0",
"doctrine/mongodb-odm": "^1.3 || ^2.4.3",
"doctrine/mongodb-odm": "^2.4.3",
"doctrine/orm": "^2.16.0",
"doctrine/persistence": "^2.2.1 || ^3.2",
"gedmo/doctrine-extensions": "^3.8",
"nesbot/carbon": "^2.49",
"nikic/php-parser": "^4.13.2",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-phpunit": "^1.3.13",
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^9.6.20",
"ramsey/uuid": "^4.2",
"symfony/cache": "^5.4"
@ -16207,34 +16207,33 @@
"description": "Doctrine extensions for PHPStan",
"support": {
"issues": "https://github.com/phpstan/phpstan-doctrine/issues",
"source": "https://github.com/phpstan/phpstan-doctrine/tree/1.5.7"
"source": "https://github.com/phpstan/phpstan-doctrine/tree/2.0.1"
},
"time": "2024-12-02T16:47:26+00:00"
"time": "2024-12-02T16:48:00+00:00"
},
{
"name": "phpstan/phpstan-strict-rules",
"version": "1.6.1",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-strict-rules.git",
"reference": "daeec748b53de80a97498462513066834ec28f8b"
"reference": "ed6fea0ad4ad9c7e25f3ad2e7c4d420cf1e67fe3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/daeec748b53de80a97498462513066834ec28f8b",
"reference": "daeec748b53de80a97498462513066834ec28f8b",
"url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/ed6fea0ad4ad9c7e25f3ad2e7c4d420cf1e67fe3",
"reference": "ed6fea0ad4ad9c7e25f3ad2e7c4d420cf1e67fe3",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.12.4"
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^2.0.4"
},
"require-dev": {
"nikic/php-parser": "^4.13.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5"
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^9.6"
},
"type": "phpstan-extension",
"extra": {
@ -16256,38 +16255,37 @@
"description": "Extra strict and opinionated rules for PHPStan",
"support": {
"issues": "https://github.com/phpstan/phpstan-strict-rules/issues",
"source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.1"
"source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.1"
},
"time": "2024-09-20T14:04:44+00:00"
"time": "2024-12-12T20:21:10+00:00"
},
{
"name": "phpstan/phpstan-symfony",
"version": "1.4.12",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-symfony.git",
"reference": "c7b7e7f520893621558bfbfdb2694d4364565c1d"
"reference": "1ef4dce2baabd464c2dd3109d051bad94efa1e79"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/c7b7e7f520893621558bfbfdb2694d4364565c1d",
"reference": "c7b7e7f520893621558bfbfdb2694d4364565c1d",
"url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/1ef4dce2baabd464c2dd3109d051bad94efa1e79",
"reference": "1ef4dce2baabd464c2dd3109d051bad94efa1e79",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.12"
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^2.0"
},
"conflict": {
"symfony/framework-bundle": "<3.0"
},
"require-dev": {
"nikic/php-parser": "^4.13.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-phpunit": "^1.3.11",
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpunit/phpunit": "^8.5.29 || ^9.5",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^9.6",
"psr/container": "1.0 || 1.1.1",
"symfony/config": "^5.4 || ^6.1",
"symfony/console": "^5.4 || ^6.1",
@ -16328,9 +16326,9 @@
"description": "Symfony Framework extensions and rules for PHPStan",
"support": {
"issues": "https://github.com/phpstan/phpstan-symfony/issues",
"source": "https://github.com/phpstan/phpstan-symfony/tree/1.4.12"
"source": "https://github.com/phpstan/phpstan-symfony/tree/2.0.0"
},
"time": "2024-11-06T10:13:18+00:00"
"time": "2024-11-06T10:13:40+00:00"
},
{
"name": "phpunit/php-code-coverage",
@ -16756,21 +16754,21 @@
},
{
"name": "rector/rector",
"version": "1.2.10",
"version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
"reference": "40f9cf38c05296bd32f444121336a521a293fa61"
"reference": "df5de7b80deced1ea7f719a0b4d02e4aee87dd21"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/40f9cf38c05296bd32f444121336a521a293fa61",
"reference": "40f9cf38c05296bd32f444121336a521a293fa61",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/df5de7b80deced1ea7f719a0b4d02e4aee87dd21",
"reference": "df5de7b80deced1ea7f719a0b4d02e4aee87dd21",
"shasum": ""
},
"require": {
"php": "^7.2|^8.0",
"phpstan/phpstan": "^1.12.5"
"php": "^7.4|^8.0",
"phpstan/phpstan": "^2.0.4"
},
"conflict": {
"rector/rector-doctrine": "*",
@ -16803,7 +16801,7 @@
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/1.2.10"
"source": "https://github.com/rectorphp/rector/tree/2.0.4"
},
"funding": [
{
@ -16811,7 +16809,7 @@
"type": "github"
}
],
"time": "2024-11-08T13:59:10+00:00"
"time": "2024-12-26T23:06:19+00:00"
},
{
"name": "roave/security-advisories",
@ -16819,12 +16817,12 @@
"source": {
"type": "git",
"url": "https://github.com/Roave/SecurityAdvisories.git",
"reference": "5a88337185d08d54ac102bc6eb137fc432ea70fb"
"reference": "9dd07280fc4c5f6c3d2a3da5e4058fc7288c2a1d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/5a88337185d08d54ac102bc6eb137fc432ea70fb",
"reference": "5a88337185d08d54ac102bc6eb137fc432ea70fb",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/9dd07280fc4c5f6c3d2a3da5e4058fc7288c2a1d",
"reference": "9dd07280fc4c5f6c3d2a3da5e4058fc7288c2a1d",
"shasum": ""
},
"conflict": {
@ -17113,7 +17111,7 @@
"james-heinrich/phpthumb": "<1.7.12",
"jasig/phpcas": "<1.3.3",
"jcbrand/converse.js": "<3.3.3",
"joelbutcher/socialstream": "<6.2",
"joelbutcher/socialstream": "<5.6|>=6,<6.2",
"johnbillion/wp-crontrol": "<1.16.2",
"joomla/application": "<1.0.13",
"joomla/archive": "<1.1.12|>=2,<2.0.1",
@ -17485,7 +17483,8 @@
"t3s/content-consent": "<1.0.3|>=2,<2.0.2",
"tastyigniter/tastyigniter": "<3.3",
"tcg/voyager": "<=1.4",
"tecnickcom/tcpdf": "<=6.7.5",
"tecnickcom/tc-lib-pdf-font": "<2.6.4",
"tecnickcom/tcpdf": "<6.8",
"terminal42/contao-tablelookupwizard": "<3.3.5",
"thelia/backoffice-default-template": ">=2.1,<2.1.2",
"thelia/thelia": ">=2.1,<2.1.3",
@ -17497,6 +17496,7 @@
"tinymce/tinymce": "<7.2",
"tinymighty/wiki-seo": "<1.2.2",
"titon/framework": "<9.9.99",
"tltneon/lgsl": "<7",
"tobiasbg/tablepress": "<=2.0.0.0-RC1",
"topthink/framework": "<6.0.17|>=6.1,<=8.0.4",
"topthink/think": "<=6.1.1",
@ -17664,7 +17664,7 @@
"type": "tidelift"
}
],
"time": "2024-12-23T19:04:22+00:00"
"time": "2024-12-27T20:05:23+00:00"
},
{
"name": "sebastian/cli-parser",