Skip to content

Commit

Permalink
Deprecated excludes_analyse option
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 12, 2021
1 parent e86742d commit d25c5e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
4 changes: 4 additions & 0 deletions src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <fg=cyan>excludes_analyse</>. ⚠️️');
$errorOutput->writeLineFormatted('');
$errorOutput->writeLineFormatted(sprintf('Parameter <fg=cyan>excludes_analyse</> has been deprecated so use <fg=cyan>excludePaths</> only from now on.'));
}

$tempResultCachePath = $container->getParameter('tempResultCachePath');
Expand Down

0 comments on commit d25c5e5

Please sign in to comment.