Skip to content

Commit ab09fd7

Browse files
authored
Merge pull request #68 from magento-ecg/MAGINT-40-Error
Uncaught TypeError: vsprintf(): Argument #2 () must be of type array,…
2 parents 2e66ec1 + 0085e6b commit ab09fd7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

EcgM2/Sniffs/Templates/EscapedOutputSniff.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ public function process(File $phpcsFile, $stackPtr)
8181
if (!$this->isExpectedTokenSequence($stackPtr, $stackClosingPtr)) {
8282
$error = 'Unescaped output is forbidden! %s';
8383
$invalidCodeSequence = $this->prepareInvalidCodeSequence($stackPtr, $stackClosingPtr);
84-
$phpcsFile->addError($error, $stackPtr, 'Unescaped output', $invalidCodeSequence);
84+
$phpcsFile->addError(
85+
$error,
86+
$stackPtr,
87+
'Unescaped output',
88+
[$invalidCodeSequence]
89+
);
8590
}
8691
}
8792

0 commit comments

Comments
 (0)