Skip to content

Commit ca0887b

Browse files
committed
Ignore phpstan false positive
1 parent eec34ed commit ca0887b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/AMP/Traits/Sanitization_Utils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ private function change_tag_name( DOMElement $node, string $tag_name ): void {
266266
}
267267

268268
// Then, copy over all attributes.
269+
270+
// @phpstan-ignore foreach.nonIterable (false positive)
269271
foreach ( $node->attributes as $attr ) {
270272
/**
271273
* Attribute.

0 commit comments

Comments
 (0)