Skip to content

Commit

Permalink
Add PHPStan ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Jan 5, 2025
1 parent 1fe6485 commit 55e1d91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/core/classes/blocks/class-rsvp-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ public function anonymize_rsvp_blocks( array &$blocks, int $response_id ) {
$tag = new WP_HTML_Tag_Processor( $block_html );
$tag->next_tag();
$tag->next_token();

// @todo PHPStan flags this line. The method is available in WordPress 6.7. Revisit and consider removing this ignore in the future.
// @phpstan-ignore-next-line
$tag->set_modifiable_text(
esc_html_x( 'Anonymous', 'Label for users who wish to remain anonymous in RSVP responses.', 'gatherpress' )
);
Expand Down

0 comments on commit 55e1d91

Please sign in to comment.