@@ -135,7 +135,7 @@ public function get_email_stats()
135135 *
136136 * @return false|mixed
137137 */
138- public function get_growth_stats (\DateTime $ starting = null , \DateTime $ ending = null )
138+ public function get_growth_stats (? \DateTime $ starting = null , ? \DateTime $ ending = null )
139139 {
140140 return $ this ->get (
141141 'account/growth_stats ' ,
@@ -339,10 +339,10 @@ public function add_subscriber_to_legacy_form(int $form_id, int $subscriber_id)
339339 public function get_form_subscriptions (
340340 int $ form_id ,
341341 string $ subscriber_state = 'active ' ,
342- \DateTime $ created_after = null ,
343- \DateTime $ created_before = null ,
344- \DateTime $ added_after = null ,
345- \DateTime $ added_before = null ,
342+ ? \DateTime $ created_after = null ,
343+ ? \DateTime $ created_before = null ,
344+ ? \DateTime $ added_after = null ,
345+ ? \DateTime $ added_before = null ,
346346 bool $ include_total_count = false ,
347347 string $ after_cursor = '' ,
348348 string $ before_cursor = '' ,
@@ -466,10 +466,10 @@ public function add_subscriber_to_sequence(int $sequence_id, int $subscriber_id)
466466 public function get_sequence_subscriptions (
467467 int $ sequence_id ,
468468 string $ subscriber_state = 'active ' ,
469- \DateTime $ created_after = null ,
470- \DateTime $ created_before = null ,
471- \DateTime $ added_after = null ,
472- \DateTime $ added_before = null ,
469+ ? \DateTime $ created_after = null ,
470+ ? \DateTime $ created_before = null ,
471+ ? \DateTime $ added_after = null ,
472+ ? \DateTime $ added_before = null ,
473473 bool $ include_total_count = false ,
474474 string $ after_cursor = '' ,
475475 string $ before_cursor = '' ,
@@ -682,10 +682,10 @@ public function remove_tag_from_subscriber_by_email(int $tag_id, string $email_a
682682 public function get_tag_subscriptions (
683683 int $ tag_id ,
684684 string $ subscriber_state = 'active ' ,
685- \DateTime $ created_after = null ,
686- \DateTime $ created_before = null ,
687- \DateTime $ tagged_after = null ,
688- \DateTime $ tagged_before = null ,
685+ ? \DateTime $ created_after = null ,
686+ ? \DateTime $ created_before = null ,
687+ ? \DateTime $ tagged_after = null ,
688+ ? \DateTime $ tagged_before = null ,
689689 bool $ include_total_count = false ,
690690 string $ after_cursor = '' ,
691691 string $ before_cursor = '' ,
@@ -781,10 +781,10 @@ public function get_email_templates(
781781 public function get_subscribers (
782782 string $ subscriber_state = 'active ' ,
783783 string $ email_address = '' ,
784- \DateTime $ created_after = null ,
785- \DateTime $ created_before = null ,
786- \DateTime $ updated_after = null ,
787- \DateTime $ updated_before = null ,
784+ ? \DateTime $ created_after = null ,
785+ ? \DateTime $ created_before = null ,
786+ ? \DateTime $ updated_after = null ,
787+ ? \DateTime $ updated_before = null ,
788788 string $ sort_field = 'id ' ,
789789 string $ sort_order = 'desc ' ,
790790 bool $ include_total_count = false ,
@@ -1128,8 +1128,8 @@ public function create_broadcast(
11281128 string $ content = '' ,
11291129 string $ description = '' ,
11301130 bool $ public = false ,
1131- \DateTime $ published_at = null ,
1132- \DateTime $ send_at = null ,
1131+ ? \DateTime $ published_at = null ,
1132+ ? \DateTime $ send_at = null ,
11331133 string $ email_address = '' ,
11341134 string $ email_template_id = '' ,
11351135 string $ thumbnail_alt = '' ,
@@ -1236,8 +1236,8 @@ public function update_broadcast(
12361236 string $ content = '' ,
12371237 string $ description = '' ,
12381238 bool $ public = false ,
1239- \DateTime $ published_at = null ,
1240- \DateTime $ send_at = null ,
1239+ ? \DateTime $ published_at = null ,
1240+ ? \DateTime $ send_at = null ,
12411241 string $ email_address = '' ,
12421242 string $ email_template_id = '' ,
12431243 string $ thumbnail_alt = '' ,
@@ -1619,14 +1619,14 @@ public function create_purchase(
16191619 string $ transaction_id ,
16201620 array $ products ,
16211621 string $ currency = 'USD ' ,
1622- string $ first_name = null ,
1623- string $ status = null ,
1622+ ? string $ first_name = null ,
1623+ ? string $ status = null ,
16241624 float $ subtotal = 0 ,
16251625 float $ tax = 0 ,
16261626 float $ shipping = 0 ,
16271627 float $ discount = 0 ,
16281628 float $ total = 0 ,
1629- \DateTime $ transaction_time = null
1629+ ? \DateTime $ transaction_time = null
16301630 ) {
16311631 // Build parameters.
16321632 $ options = [
0 commit comments