From 83227ff98b46511b90d7f53d9eb1635e3d97146a Mon Sep 17 00:00:00 2001 From: Alexandre Faustino Date: Wed, 17 Apr 2024 13:52:26 +0100 Subject: [PATCH] Fix: bug with type hint in `wpo_wcpdf_parse_document_date_for_wp_query()` (#771) --- includes/wcpdf-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wcpdf-functions.php b/includes/wcpdf-functions.php index 5df625f8e..baf4880ff 100644 --- a/includes/wcpdf-functions.php +++ b/includes/wcpdf-functions.php @@ -643,11 +643,11 @@ function WPO_WCPDF_Legacy() { * Parse document date for WP_Query. * * @param array $wp_query_args - * @param mixed $query_args + * @param array $query_args * * @return array */ -function wpo_wcpdf_parse_document_date_for_wp_query( array $wp_query_args, mixed $query_vars ): array { +function wpo_wcpdf_parse_document_date_for_wp_query( array $wp_query_args, array $query_vars ): array { $documents = WPO_WCPDF()->documents->get_documents(); if ( ! empty( $documents ) ) {