From a1c452899b55f7a38b006928d1511d308efccd9c Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 23 Nov 2021 22:17:08 +0545 Subject: [PATCH 1/2] Use phpstan major version 1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 929e6ae..724f188 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ }, "require-dev" : { "friendsofphp/php-cs-fixer": "2.18.0", - "phpstan/phpstan": "^0.12" + "phpstan/phpstan": "^1.2" }, "replace" : { "jeromeschneider/baikal" : "self.version" From ba08e6c8ade2e42b841bec600a0631c8da91f01e Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 23 Nov 2021 22:22:10 +0545 Subject: [PATCH 2/2] Replace deprecated excludes_analyse with excludePaths --- phpstan.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 8adde37..3e9c422 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,6 @@ parameters: level: 0 - excludes_analyse: + excludePaths: - Core/Frameworks/BaikalAdmin/Resources/GlyphiconsPro/generate-sprite.php - Core/Resources/Web/BaikalAdmin/GlyphiconsPro/generate-sprite.php - html/res/core/BaikalAdmin/GlyphiconsPro/generate-sprite.php