Skip to content

Commit

Permalink
Allow Multiple try-catch classes
Browse files Browse the repository at this point in the history
  • Loading branch information
CMalvika committed Jan 11, 2018
1 parent 5366c7d commit 725ef89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/InterNations/Sniffs/Naming/ConstantNameSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public function process(File $file, $stackPtr)

// Is it a catch block
$prevPtrCatch = $file->findPrevious([T_WHITESPACE, T_OPEN_PARENTHESIS], ($stackPtr - 1), null, true);

if ($tokens[$prevPtrCatch]['code'] === T_CATCH) {
return;
}
Expand Down

0 comments on commit 725ef89

Please sign in to comment.