Skip to content

Commit

Permalink
fix phpstan again
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmarsh committed Sep 17, 2024
1 parent 695f536 commit 906df2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-plugin-curated-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function with_query_context( array $context, array $attributes, WP_Block_
$pinned_posts = array_map( fn ( $id ) => $id && 'publish' === get_post_status( $id ) ? $id : null, $pinned_posts );

$queries = new Positioned_Post_Queries(
positioned: is_array( $pinned_posts ) ? $pinned_posts : [],
positioned: $pinned_posts,
default_per_page: $args['posts_per_page'],
origin: $this->queries,
);
Expand Down

0 comments on commit 906df2a

Please sign in to comment.