From aca075c628a5d895e76e0f13c572b9c1385a9658 Mon Sep 17 00:00:00 2001 From: davidsherlock <43mZGKl$bjD@KfMO%ggj#V5Y5dgrF%ps> Date: Wed, 20 Sep 2023 02:05:46 +0300 Subject: [PATCH] Fixes --- src/Math_Query.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Math_Query.php b/src/Math_Query.php index c089683..03f95c6 100644 --- a/src/Math_Query.php +++ b/src/Math_Query.php @@ -478,8 +478,6 @@ public function get_result(): mixed { $query = $wpdb->prepare( $query, $placeholders ); - var_dump( $query ); - // Execute the database query based on GROUP BY if ( ! empty( $group_by ) ) { $results = $wpdb->get_results( $query, OBJECT ); @@ -597,9 +595,6 @@ protected function generate_where_conditions( array &$placeholders ): array { * @throws Exception If an error occurs during the condition generation. */ protected function generate_in_condition( string $column_name, array $values, array &$placeholders, array &$where_conditions, string $condition_type ): void { - if ( ! is_array( $values ) ) { - throw new \Exception( 'Values must be an array for ' . $condition_type . ' condition.' ); - } // Determine the placeholder type for each value $placeholder_types = array_map( array( $this, 'get_placeholder_type' ), $values );