mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 08:20:53 +00:00
[VersionBonding] Correctly shows missed rectors that will not run (#574)
This commit is contained in:
parent
e3ce320151
commit
e5b00c449c
|
@ -84,20 +84,20 @@ final class MissedRectorDueVersionChecker
|
|||
}
|
||||
|
||||
/**
|
||||
* @param MinPhpVersionInterface[] $minPhpVersions
|
||||
* @param MinPhpVersionInterface[] $missedRectors
|
||||
*/
|
||||
private function reportWarningMessage(int $minProjectPhpVersion, array $minPhpVersions): void
|
||||
private function reportWarningMessage(int $minProjectPhpVersion, array $missedRectors): void
|
||||
{
|
||||
$phpVersion = new PhpVersion($minProjectPhpVersion);
|
||||
|
||||
$warningMessage = sprintf(
|
||||
'Your project requires min PHP version "%s".%s%d%sSome Rectors rules defined in your configuration require higher PHP version and will not run,%sto avoid breaking your codebase.',
|
||||
'Your project requires min PHP version "%s". %s%d Rector rules defined in your configuration require higher PHP version and will not run,%sto avoid breaking your codebase, use -vvv for detailed info.',
|
||||
$phpVersion->getVersionString(),
|
||||
count($minPhpVersions),
|
||||
PHP_EOL,
|
||||
PHP_EOL . PHP_EOL,
|
||||
count($missedRectors),
|
||||
PHP_EOL
|
||||
);
|
||||
|
||||
$this->symfonyStyle->warning($warningMessage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user