From 2aba3e5bce55e05e30f0e3d66ed3cc92c1be2e98 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 17 Nov 2024 09:34:43 +0100 Subject: [PATCH 1/2] Revert "Disable tomasvotruba/unused-public for now" This reverts commit f9cd010a7e8c46b11aab37e3f056dbd0fd908bf7. --- composer.json | 1 + phpstan.neon.dist | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/composer.json b/composer.json index fd66c3d5..2401a7f3 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5|^9.5", "symplify/easy-coding-standard": "^12.4", + "tomasvotruba/unused-public": "^1.0", "vlucas/phpdotenv": "^5.4" }, "conflict": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0b622927..7b0abe3e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -14,6 +14,11 @@ parameters: bootstrapFiles: - bootstrap.php + unused_public: + methods: true + properties: true + constants: true + reportUnmatchedIgnoredErrors: false ignoreErrors: From a025c00fef0d841650afef5b6cea39969c9b2b75 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 12 Dec 2024 19:15:35 +0100 Subject: [PATCH 2/2] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2401a7f3..84ca3b08 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5|^9.5", "symplify/easy-coding-standard": "^12.4", - "tomasvotruba/unused-public": "^1.0", + "tomasvotruba/unused-public": "^2.0", "vlucas/phpdotenv": "^5.4" }, "conflict": {