Skip to content

Commit d25c5e5

Browse files
committed
Deprecated excludes_analyse option
1 parent e86742d commit d25c5e5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build/phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ parameters:
1818
- ../tests/phpstan-bootstrap.php
1919
checkUninitializedProperties: true
2020
checkMissingCallableSignature: true
21-
excludes_analyse:
21+
excludePaths:
2222
- ../src/Reflection/SignatureMap/functionMap.php
2323
- ../src/Reflection/SignatureMap/functionMetadata.php
2424
- ../tests/*/data/*

src/Command/CommandHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ public static function begin(
419419
$errorOutput->writeLineFormatted('');
420420

421421
throw new \PHPStan\Command\InceptionNotSuccessfulException();
422+
} elseif (count($excludesAnalyse) > 0) {
423+
$errorOutput->writeLineFormatted('⚠️ You\'re using a deprecated config option <fg=cyan>excludes_analyse</>. ⚠️️');
424+
$errorOutput->writeLineFormatted('');
425+
$errorOutput->writeLineFormatted(sprintf('Parameter <fg=cyan>excludes_analyse</> has been deprecated so use <fg=cyan>excludePaths</> only from now on.'));
422426
}
423427

424428
$tempResultCachePath = $container->getParameter('tempResultCachePath');

0 commit comments

Comments
 (0)