From d25c5e5a6c62a4537d4a108707ff26b5bea687d9 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 12 Sep 2021 23:21:22 +0200 Subject: [PATCH] Deprecated excludes_analyse option --- build/phpstan.neon | 2 +- src/Command/CommandHelper.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build/phpstan.neon b/build/phpstan.neon index 2ae97ea454..a42918c5dc 100644 --- a/build/phpstan.neon +++ b/build/phpstan.neon @@ -18,7 +18,7 @@ parameters: - ../tests/phpstan-bootstrap.php checkUninitializedProperties: true checkMissingCallableSignature: true - excludes_analyse: + excludePaths: - ../src/Reflection/SignatureMap/functionMap.php - ../src/Reflection/SignatureMap/functionMetadata.php - ../tests/*/data/* diff --git a/src/Command/CommandHelper.php b/src/Command/CommandHelper.php index 1a5caa2dce..e743d13cf8 100644 --- a/src/Command/CommandHelper.php +++ b/src/Command/CommandHelper.php @@ -419,6 +419,10 @@ public static function begin( $errorOutput->writeLineFormatted(''); throw new \PHPStan\Command\InceptionNotSuccessfulException(); + } elseif (count($excludesAnalyse) > 0) { + $errorOutput->writeLineFormatted('⚠️ You\'re using a deprecated config option excludes_analyse. ⚠️️'); + $errorOutput->writeLineFormatted(''); + $errorOutput->writeLineFormatted(sprintf('Parameter excludes_analyse has been deprecated so use excludePaths only from now on.')); } $tempResultCachePath = $container->getParameter('tempResultCachePath');