Skip to content

Commit b07fca9

Browse files
authored
Merge pull request #391 from Automattic/feature/389-undefined-tokens-variable
Fix undefined variable: tokens
2 parents 4154808 + 5282102 commit b07fca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressVIPMinimum/Sniffs/Variables/VariableAnalysisSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ protected function checkForStaticMember( $stackPtr, $varName ) {
785785
// TODO: not sure this is our business or should be some other sniff.
786786
if ( ( $this->tokens[$classNamePtr]['code'] === T_SELF ) ||
787787
( $this->tokens[$classNamePtr]['code'] === T_STATIC ) ) {
788-
if ( $tokens[$classNamePtr]['code'] === T_SELF ) {
788+
if ( $this->tokens[$classNamePtr]['code'] === T_SELF ) {
789789
$err_prefix = 'Self';
790790
$err_desc = 'self::';
791791
} else {

0 commit comments

Comments
 (0)