Skip to content

Commit

Permalink
PD-248 Remove return type assertion from enqueue_highlighting function.
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed Jul 5, 2023
1 parent 190e82f commit 1b88121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/front-end/class-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ function ( $languages ) {
*
* @param array<WP_Post|int>|null|false $posts List of currently visible posts.
*
* @return array<WP_Post|int> Unchanged list of posts.
* @return array<WP_Post|int>|null|false Unchanged list of posts.
*/
public function enqueue_highlighting( $posts ): array {
public function enqueue_highlighting( $posts ) {

// Exit early if there are no posts to check or if the highlighter has been disabled.
if ( empty( $posts ) || Settings\get_setting( 'general', 'disable_prism' ) ) {
Expand Down

0 comments on commit 1b88121

Please sign in to comment.