Skip to content

Commit 3a50500

Browse files
Bump szepeviktor/phpstan-wordpress from 2.0.2 to 2.0.3 (#14384)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Birchler <pascalb@google.com>
1 parent e8739c5 commit 3a50500

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

composer.lock

Lines changed: 11 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/AMP/Canonical_Sanitizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function sanitize(): void {
6767
for ( $i = 1; $i < $query->length; $i++ ) {
6868
$node = $query->item( $i );
6969
if ( $node ) {
70+
// @phpstan-ignore argument.type
7071
$this->dom->head->removeChild( $node );
7172
}
7273
}

includes/AMP/Meta_Sanitizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ protected function ensure_boilerplate_is_present(): void {
7676
$style->parentNode->removeChild( $style ); // So we can move it.
7777
}
7878
if ( $style ) {
79+
// @phpstan-ignore argument.type
7980
$this->dom->head->appendChild( $style );
8081
}
8182

@@ -99,6 +100,7 @@ protected function ensure_boilerplate_is_present(): void {
99100
}
100101

101102
if ( $noscript ) {
103+
// @phpstan-ignore argument.type
102104
$this->dom->head->appendChild( $noscript );
103105
}
104106
}

0 commit comments

Comments
 (0)