Skip to content

Commit

Permalink
fix(test): if there is no alert_id use null as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
harunbleech committed Apr 8, 2024
1 parent f3ac10f commit a698a32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/models/class-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a698a32

Please sign in to comment.