Skip to content

Commit

Permalink
Move $selfReferences in the common AbstractLocalVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed May 16, 2020
1 parent 5ed0d15 commit ef1705f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/main/php/PHPMD/Rule/AbstractLocalVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
*/
abstract class AbstractLocalVariable extends AbstractRule
{
/**
* @var array Self reference class names.
*/
protected $selfReferences = array('self', 'static');

/**
* PHP super globals that are available in all php scopes, so that they
* can never be unused local variables.
Expand Down
5 changes: 0 additions & 5 deletions src/main/php/PHPMD/Rule/CleanCode/UndefinedVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
*/
class UndefinedVariable extends AbstractLocalVariable implements FunctionAware, MethodAware
{
/**
* @var array Self reference class names.
*/
protected $selfReferences = array('self', 'static');

/**
* Found variable images within a single method or function.
*
Expand Down

0 comments on commit ef1705f

Please sign in to comment.