Skip to content

Commit 557b1d9

Browse files
committed
Resolve incorrect violation code by resetting the hasDisallowedAnnotation property at then end of processing
1 parent 9091848 commit 557b1d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Magento2/Sniffs/Security/XssTemplateSniff.php

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public function process(File $phpcsFile, $stackPtr)
135135
$statement = array_shift($this->statements);
136136
$this->detectUnescapedString($statement);
137137
}
138+
$this->hasDisallowedAnnotation = false;
138139
}
139140

140141
/**

0 commit comments

Comments
 (0)