Skip to content

Commit be6a932

Browse files
committed
Fix unnecessary comparison against token type
1 parent 124863b commit be6a932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WordPressVIPMinimum/Sniffs/Hooks/PreGetPostsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ private function isWPQueryMethodCall( $stackPtr, $method = null ) {
388388
true
389389
);
390390

391-
if ( ! $next || $this->tokens[ $next ]['type'] !== 'T_OBJECT_OPERATOR' ) {
391+
if ( ! $next || $this->tokens[ $next ]['code'] !== T_OBJECT_OPERATOR ) {
392392
return false;
393393
}
394394

0 commit comments

Comments
 (0)