Skip to content

Commit

Permalink
Exclude getAttribute and setAttribute from PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Oct 28, 2024
1 parent e27826b commit dd9e64c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/class-convertkit-broadcasts-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ private function parse_broadcast_content( $broadcast_content, $post_id ) {

foreach ( $xpath->query( '//img' ) as $node ) {
$image = array(
'src' => $node->getAttribute( 'src' ),
'alt' => $node->getAttribute( 'alt' ),
'src' => $node->getAttribute( 'src' ), // @phpstan-ignore-line
'alt' => $node->getAttribute( 'alt' ), // @phpstan-ignore-line
);

// Skip if this image isn't served from https://embed.filekitcdn.com, as it isn't
Expand Down Expand Up @@ -392,7 +392,7 @@ private function parse_broadcast_content( $broadcast_content, $post_id ) {
);

// Replace this image's `src` attribute with the Media Library Image URL.
$node->setAttribute( 'src', $image_url[0] );
$node->setAttribute( 'src', $image_url[0] ); // @phpstan-ignore-line
}
}

Expand Down

0 comments on commit dd9e64c

Please sign in to comment.