Skip to content

Commit

Permalink
solves #40
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarcil committed Aug 5, 2019
1 parent ad97333 commit 68a6c53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Security/Sniffs/BadFunctions/SystemExecFunctionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function process(File $phpcsFile, $stackPtr) {
return;
}
$opener = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true);
if (!$opener) {
return;
}
$closer = $tokens[$opener]['parenthesis_closer'];
$s = $stackPtr + 1;
$s = $phpcsFile->findNext(array_merge(\PHP_CodeSniffer\Util\Tokens::$emptyTokens, \PHP_CodeSniffer\Util\Tokens::$bracketTokens, \PHPCS_SecurityAudit\Sniffs\Utils::$staticTokens, array(T_STRING_CONCAT)), $s, $closer, true);
Expand Down

0 comments on commit 68a6c53

Please sign in to comment.