diff --git a/includes/core/classes/blocks/class-rsvp-template.php b/includes/core/classes/blocks/class-rsvp-template.php index cbfdbab0c..25437d206 100644 --- a/includes/core/classes/blocks/class-rsvp-template.php +++ b/includes/core/classes/blocks/class-rsvp-template.php @@ -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' ) );