From 1b88121384f70f0fe12da01760065e8df775e6bd Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Wed, 5 Jul 2023 19:41:19 +1000 Subject: [PATCH] PD-248 Remove return type assertion from enqueue_highlighting function. --- php/front-end/class-frontend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/front-end/class-frontend.php b/php/front-end/class-frontend.php index 9b237972..b683e390 100644 --- a/php/front-end/class-frontend.php +++ b/php/front-end/class-frontend.php @@ -125,9 +125,9 @@ function ( $languages ) { * * @param array|null|false $posts List of currently visible posts. * - * @return array Unchanged list of posts. + * @return array|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' ) ) {