supportsBelow('7.0') === false) { return; } $tokens = $phpcsFile->getTokens(); $token = $tokens[$stackPtr]; // Bow out during live coding. if (isset($token['parenthesis_opener'], $token['parenthesis_closer']) === false) { return; } $hasBitwiseOr = $phpcsFile->findNext(\T_BITWISE_OR, $token['parenthesis_opener'], $token['parenthesis_closer']); if ($hasBitwiseOr === false) { return; } $phpcsFile->addError( 'Catching multiple exceptions within one statement is not supported in PHP 7.0 or earlier.', $hasBitwiseOr, 'Found' ); } }