Merge branch 'develop' into feature/16-use-statements
This commit is contained in:
commit
fd57147c2a
7 changed files with 23 additions and 5 deletions
13
Readme.rst
13
Readme.rst
|
@ -121,3 +121,16 @@ the provided one.
|
||||||
<property name="legacyExtensions" type="array" value="Extbase,Fluid,Frontend,Core"/>
|
<property name="legacyExtensions" type="array" value="Extbase,Fluid,Frontend,Core"/>
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
Typo3Update.LegacyClassnames.DocComment: ``allowedTags``
|
||||||
|
Configures which tags are checked for legacy class names.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code:: xml
|
||||||
|
|
||||||
|
<rule ref="Typo3Update.LegacyClassnames.DocComment">
|
||||||
|
<properties>
|
||||||
|
<property name="allowedTags" type="array" value="@param,@return,@var,@see,@throws"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
|
|
|
@ -32,7 +32,7 @@ class Typo3Update_Sniffs_LegacyClassnames_DocCommentSniff implements PHP_CodeSni
|
||||||
* The configured tags will be processed.
|
* The configured tags will be processed.
|
||||||
* @var array<string>
|
* @var array<string>
|
||||||
*/
|
*/
|
||||||
protected $allowedTags = ['@param', '@return', '@var'];
|
public $allowedTags = ['@param', '@return', '@var'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Original token content for reuse accross methods.
|
* Original token content for reuse accross methods.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect and migrate extend and implement of old legacy classnames.
|
* Detect and migrate instanceof checks of old legacy classnames.
|
||||||
*/
|
*/
|
||||||
class Typo3Update_Sniffs_LegacyClassnames_InstanceofSniff implements PHP_CodeSniffer_Sniff
|
class Typo3Update_Sniffs_LegacyClassnames_InstanceofSniff implements PHP_CodeSniffer_Sniff
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
use PHP_CodeSniffer_Tokens as Tokens;
|
use PHP_CodeSniffer_Tokens as Tokens;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect and migrate static calls to old legacy classnames.
|
* Detect and migrate instantiations of old legacy classnames using "makeInstance".
|
||||||
*/
|
*/
|
||||||
class Typo3Update_Sniffs_LegacyClassnames_InstantiationWithMakeInstanceSniff implements PHP_CodeSniffer_Sniff
|
class Typo3Update_Sniffs_LegacyClassnames_InstantiationWithMakeInstanceSniff implements PHP_CodeSniffer_Sniff
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect and migrate static calls to old legacy classnames.
|
* Detect and migrate old legacy classnames instantiations using phps "new".
|
||||||
*/
|
*/
|
||||||
class Typo3Update_Sniffs_LegacyClassnames_InstantiationWithNewSniff implements PHP_CodeSniffer_Sniff
|
class Typo3Update_Sniffs_LegacyClassnames_InstantiationWithNewSniff implements PHP_CodeSniffer_Sniff
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
use PHP_CodeSniffer_Tokens as Tokens;
|
use PHP_CodeSniffer_Tokens as Tokens;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect and migrate static calls to old legacy classnames.
|
* Detect and migrate old legacy classname instantiations using objectmanager create and get.
|
||||||
*/
|
*/
|
||||||
class Typo3Update_Sniffs_LegacyClassnames_InstantiationWithObjectManagerSniff implements PHP_CodeSniffer_Sniff
|
class Typo3Update_Sniffs_LegacyClassnames_InstantiationWithObjectManagerSniff implements PHP_CodeSniffer_Sniff
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,4 +7,9 @@
|
||||||
<property name="legacyExtensions" type="array" value="Extbase,Fluid,Frontend,Core"/>
|
<property name="legacyExtensions" type="array" value="Extbase,Fluid,Frontend,Core"/>
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule ref="Typo3Update.LegacyClassnames.DocComment">
|
||||||
|
<properties>
|
||||||
|
<property name="allowedTags" type="array" value="@param,@return,@var,@see,@throws"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in a new issue