Merge branch 'develop' into feature/16-use-statements

This commit is contained in:
Daniel Hürtgen 2017-03-16 16:56:23 +01:00 committed by GitHub
commit fd57147c2a
7 changed files with 23 additions and 5 deletions

View file

@ -121,3 +121,16 @@ the provided one.
<property name="legacyExtensions" type="array" value="Extbase,Fluid,Frontend,Core"/>
</properties>
</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>

View file

@ -32,7 +32,7 @@ class Typo3Update_Sniffs_LegacyClassnames_DocCommentSniff implements PHP_CodeSni
* The configured tags will be processed.
* @var array<string>
*/
protected $allowedTags = ['@param', '@return', '@var'];
public $allowedTags = ['@param', '@return', '@var'];
/**
* Original token content for reuse accross methods.

View file

@ -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
{

View file

@ -22,7 +22,7 @@
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
{

View file

@ -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
{

View file

@ -22,7 +22,7 @@
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
{

View file

@ -7,4 +7,9 @@
<property name="legacyExtensions" type="array" value="Extbase,Fluid,Frontend,Core"/>
</properties>
</rule>
<rule ref="Typo3Update.LegacyClassnames.DocComment">
<properties>
<property name="allowedTags" type="array" value="@param,@return,@var,@see,@throws"/>
</properties>
</rule>
</ruleset>