From a698a32d1bac7d3e2bc0571beab75191f10819a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harun=20Ba=C5=A1i=C4=87?= Date: Mon, 8 Apr 2024 13:14:05 +0200 Subject: [PATCH] fix(test): if there is no alert_id use null as default value --- includes/models/class-test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/models/class-test.php b/includes/models/class-test.php index 58fdf12..3179363 100644 --- a/includes/models/class-test.php +++ b/includes/models/class-test.php @@ -592,10 +592,10 @@ public static function get_all_service_test_ids() { /** * Set alert for a test. * - * @param int $post_id The id of the post. - * @param int $alert_id The id of the alert. + * @param int $post_id The id of the post. + * @param null|int $alert_id The id of the alert. */ - public static function set_alert( $post_id = 0, $alert_id = 0 ) { + public static function set_alert( $post_id = 0, $alert_id = null ) { global $wpdb; $tests_table = Tests_Table::get_table_name();