From 67cf15ef7646aba6ee329a6b0a9b77364f42f5f1 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 31 Oct 2025 17:11:47 +0100 Subject: [PATCH 1/2] feat: migrate phpstan 1 => 2 set phpstan level to 3 --- composer.json | 2 +- phpstan.neon | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 8905a43..98592e8 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,7 @@ "league/flysystem-memory": "^2.0 || ^3.0", "league/flysystem-sftp-v3": "^2.0 || ^3.0", "league/flysystem-azure-blob-storage": "^3.0", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.1.31", "phpunit/phpunit": "^9.6.17", "royvoetman/flysystem-gitlab-storage": "^2.0 || ^3.0", "symfony/asset": "^5.4 || ^6.0 || ^7.0", diff --git a/phpstan.neon b/phpstan.neon index afd5d53..531cf86 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: max + level: 3 bootstrapFiles: - %rootDir%/../../../vendor/autoload.php @@ -10,14 +10,9 @@ parameters: excludePaths: - src/DependencyInjection/Configuration.php - - tests/App/cache - - tests/App/logs - tests/App/var - - var - vendor - checkGenericClassInNonGenericObjectType: false - checkMissingIterableValueType: false reportUnmatchedIgnoredErrors: false ignoreErrors: From 8241b31d05d0fa84d32bdca874aeda37342d4017 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 31 Oct 2025 17:13:41 +0100 Subject: [PATCH 2/2] feat: migrate phpstan 1 => 2 set phpstan level to 3 --- phpstan.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 531cf86..735cb30 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -10,7 +10,7 @@ parameters: excludePaths: - src/DependencyInjection/Configuration.php - - tests/App/var + - tests/App/var (?) - vendor reportUnmatchedIgnoredErrors: false