Skip to content

Commit

Permalink
allow nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmarsh committed Aug 28, 2024
1 parent 5a94533 commit 7d16609
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/features/class-subquery-block-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public function boot(): void {
/**
* Filters the block content before it is rendered.
*
* @param string $block_content The block content.
* @param array $parsed_block The block object.
* @param \WP_Block $parent_block The parent block object.
* @param string|null $block_content The block content.
* @param array $parsed_block The block object.
* @param \WP_Block|null $parent_block The parent block object.
* @return string The block content.
*
* @phpstan-param array{
Expand All @@ -47,7 +47,7 @@ public function boot(): void {
* },
* } $parsed_block The parsed block.
*/
public function filter_pre_render_block( string $block_content, array $parsed_block, \WP_Block $parent_block ): string|null {
public function filter_pre_render_block( string|null $block_content, array $parsed_block, \WP_Block|null $parent_block ): string|null {
if ( 'wp-curate/subquery' !== $parsed_block['blockName'] ) {
return $block_content;
}
Expand Down

0 comments on commit 7d16609

Please sign in to comment.