File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
WordPressVIPMinimum/Sniffs/Variables Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -728,8 +728,7 @@ protected function checkForFunctionPrototype(
728728 // We haven't been defined by this point.
729729 $ phpcsFile ->addWarning ( "Variable `%s` is undefined. " , $ stackPtr ,
730730 'UndefinedVariable ' ,
731- array ( "\${$ varName }" ),
732- 'WordPressVIPMinimum.Variables.VariableAnalysis '
731+ array ( "\${$ varName }" )
733732 );
734733 return true ;
735734 }
@@ -875,8 +874,7 @@ protected function checkForStaticMember(
875874 if ( $ tokens [$ scopePtr ]['code ' ] === T_CLOSURE ) {
876875 $ phpcsFile ->addError ( "Use of ` {$ err_desc }%s` inside closure. " , $ stackPtr ,
877876 $ err_class ,
878- array ( "\${$ varName }" ),
879- 'WordPressVIPMinimum.Variables.VariableAnalysis '
877+ array ( "\${$ varName }" )
880878 );
881879 return true ;
882880 }
@@ -887,8 +885,7 @@ protected function checkForStaticMember(
887885 }
888886 $ phpcsFile ->addError ( "Use of ` {$ err_desc }%s` outside class definition. " , $ stackPtr ,
889887 $ err_class ,
890- array ( "\${$ varName }" ),
891- 'WordPressVIPMinimum.Variables.VariableAnalysis '
888+ array ( "\${$ varName }" )
892889 );
893890 return true ;
894891 }
You can’t perform that action at this time.
0 commit comments