We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b098ae9 + 4d8db12 commit 510be5cCopy full SHA for 510be5c
1 file changed
Security/Sniffs/BadFunctions/SystemExecFunctionsSniff.php
@@ -30,6 +30,9 @@ public function process(File $phpcsFile, $stackPtr) {
30
$tokens = $phpcsFile->getTokens();
31
32
if (in_array($tokens[$stackPtr]['content'], $utils::getSystemexecFunctions())) {
33
+ if ($tokens[$stackPtr - 1]['code'] == T_OBJECT_OPERATOR) {
34
+ return;
35
+ }
36
$opener = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true);
37
$closer = $tokens[$opener]['parenthesis_closer'];
38
$s = $stackPtr + 1;
0 commit comments