Skip to content

Commit c871396

Browse files
committed
PSR12/ReturnTypeDeclaration: remove redundant conditions
The `isset()`'s in the same condition block already take care of this.
1 parent 3168190 commit c871396

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Standards/PSR12/Sniffs/Functions/ReturnTypeDeclarationSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ public function process(File $phpcsFile, $stackPtr)
4747

4848
if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
4949
|| isset($tokens[$stackPtr]['parenthesis_closer']) === false
50-
|| $tokens[$stackPtr]['parenthesis_opener'] === null
51-
|| $tokens[$stackPtr]['parenthesis_closer'] === null
5250
) {
5351
return;
5452
}

0 commit comments

Comments
 (0)