TASK: Add suffix to trait and @var
* Add @var to processed annotations. * Add suffix to trait.
This commit is contained in:
parent
9e0106c83f
commit
10ee6295ac
3 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ use PHP_CodeSniffer_File as PhpcsFile;
|
|||
/**
|
||||
* Provide common uses for all sniffs.
|
||||
*/
|
||||
trait ClassnameChecker
|
||||
trait ClassnameCheckerTrait
|
||||
{
|
||||
/**
|
||||
* Contains mapping from old -> new class names.
|
|
@ -26,13 +26,13 @@
|
|||
*/
|
||||
class Typo3Update_Sniffs_LegacyClassnames_DocCommentSniff implements PHP_CodeSniffer_Sniff
|
||||
{
|
||||
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameChecker;
|
||||
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameCheckerTrait;
|
||||
|
||||
/**
|
||||
* The configured tags will be processed.
|
||||
* @var array<string>
|
||||
*/
|
||||
protected $allowedTags = ['@param', '@return'];
|
||||
protected $allowedTags = ['@param', '@return', '@var'];
|
||||
|
||||
/**
|
||||
* Original token for reuse accross methods.
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
class Typo3Update_Sniffs_LegacyClassnames_InheritanceSniff implements PHP_CodeSniffer_Sniff
|
||||
{
|
||||
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameChecker;
|
||||
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameCheckerTrait;
|
||||
|
||||
/**
|
||||
* Returns the token types that this sniff is interested in.
|
||||
|
|
Loading…
Reference in a new issue