Skip to content

Commit 7cb4534

Browse files
authored
Merge pull request #21 from stellarwp/fix/vsprint_php8_incompat
Pass $data param as an array to addWarning()
2 parents c7a6bd3 + cd5925f commit 7cb4534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StellarWP/Sniffs/XSS/EscapeOutputSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function process( File $phpcsFile, $stackPtr )
320320
"Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '%s'",
321321
$i,
322322
'OutputNotEscaped',
323-
$this->tokens[ $i ]['content']
323+
array( $this->tokens[ $i ]['content'] )
324324
);
325325
}
326326

0 commit comments

Comments
 (0)