FEATURE: Display new class name in error
* To be more helpful while searching without fixing. * E.g. if sniffs are integrated into IDE, the user has a chance to fix them while checking.
This commit is contained in:
parent
04a1b860a6
commit
1a17e160b5
1 changed files with 2 additions and 2 deletions
|
@ -83,10 +83,10 @@ trait ClassnameCheckerTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
$fix = $phpcsFile->addFixableError(
|
$fix = $phpcsFile->addFixableError(
|
||||||
'Legacy classes are not allowed; found %s',
|
'Legacy classes are not allowed; found "%s", use "%s" instead',
|
||||||
$classnamePosition,
|
$classnamePosition,
|
||||||
'legacyClassname',
|
'legacyClassname',
|
||||||
[$classname]
|
[$classname, $this->getNewClassname($classname)]
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($fix === true) {
|
if ($fix === true) {
|
||||||
|
|
Loading…
Reference in a new issue