Skip to content

Commit

Permalink
Merge pull request #21 from stellarwp/fix/vsprint_php8_incompat
Browse files Browse the repository at this point in the history
Pass $data param as an array to addWarning()
  • Loading branch information
borkweb authored Jan 22, 2024
2 parents c7a6bd3 + cd5925f commit 7cb4534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StellarWP/Sniffs/XSS/EscapeOutputSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function process( File $phpcsFile, $stackPtr )
"Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '%s'",
$i,
'OutputNotEscaped',
$this->tokens[ $i ]['content']
array( $this->tokens[ $i ]['content'] )
);
}

Expand Down

0 comments on commit 7cb4534

Please sign in to comment.