Skip to content

Commit

Permalink
minor #5328 Fixed deprecation message version (GrahamCampbell)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.16 branch.

Discussion
----------

Fixed deprecation message version

Commits
-------

c0c1540 Fixed deprecation message version
  • Loading branch information
keradus committed Dec 8, 2020
2 parents eae6b9b + c0c1540 commit 2ec91b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/ConfigurationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ private function validateRules(array $rules)
if (isset($rules[$fixerName]) && $fixer instanceof DeprecatedFixerInterface) {
$successors = $fixer->getSuccessorsNames();
$messageEnd = [] === $successors
? sprintf(' and will be removed in version %d.0.', Application::getMajorVersion())
? sprintf(' and will be removed in version %d.0.', Application::getMajorVersion() + 1)
: sprintf('. Use %s instead.', str_replace('`', '"', Utils::naturalLanguageJoinWithBackticks($successors)));

$message = "Rule \"{$fixerName}\" is deprecated{$messageEnd}";
Expand Down

0 comments on commit 2ec91b2

Please sign in to comment.