From 5432bfab3bf985940a61ec0fe1c6c52a2702a99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Thu, 3 Oct 2024 13:58:51 +0200 Subject: [PATCH] Add phpstan/phpstan-deprecation-rules in expectation of PHPStan 2.0 As recommended by https://phpc.social/@OndrejMirtes/113208795560206258 https://github.com/phpstan/phpstan-src/commit/0715ab942a6d2081044890fb900401e03d05e684 --- composer.json | 1 + phpstan.neon | 1 + 2 files changed, 2 insertions(+) diff --git a/composer.json b/composer.json index cf8fcad..f850163 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ "phpunit/phpunit": "^8.5 || ^10.1 || ^11.0", "php-parallel-lint/php-parallel-lint": "^1.2", "php-parallel-lint/php-console-highlighter": "^1.0", + "phpstan/phpstan-deprecation-rules": "^1.2", "spaze/coding-standard": "^1.7" }, "autoload": { diff --git a/phpstan.neon b/phpstan.neon index fe1052d..9b15f43 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,6 +13,7 @@ parameters: includes: - vendor/phpstan/phpstan/conf/bleedingEdge.neon + - vendor/phpstan/phpstan-deprecation-rules/rules.neon - extension.neon - disallowed-dangerous-calls.neon - disallowed-execution-calls.neon