@@ -137,7 +137,7 @@ public function get_email_stats()
137
137
*
138
138
* @return false|mixed
139
139
*/
140
- public function get_growth_stats (\DateTime $ starting = null , \DateTime $ ending = null )
140
+ public function get_growth_stats (\DateTime | null $ starting = null , \DateTime | null $ ending = null )
141
141
{
142
142
return $ this ->get (
143
143
'account/growth_stats ' ,
@@ -326,10 +326,10 @@ public function add_subscriber_to_form(int $form_id, int $subscriber_id, string
326
326
public function get_form_subscriptions (
327
327
int $ form_id ,
328
328
string $ subscriber_state = 'active ' ,
329
- \DateTime $ created_after = null ,
330
- \DateTime $ created_before = null ,
331
- \DateTime $ added_after = null ,
332
- \DateTime $ added_before = null ,
329
+ \DateTime | null $ created_after = null ,
330
+ \DateTime | null $ created_before = null ,
331
+ \DateTime | null $ added_after = null ,
332
+ \DateTime | null $ added_before = null ,
333
333
bool $ include_total_count = false ,
334
334
string $ after_cursor = '' ,
335
335
string $ before_cursor = '' ,
@@ -453,10 +453,10 @@ public function add_subscriber_to_sequence(int $sequence_id, int $subscriber_id)
453
453
public function get_sequence_subscriptions (
454
454
int $ sequence_id ,
455
455
string $ subscriber_state = 'active ' ,
456
- \DateTime $ created_after = null ,
457
- \DateTime $ created_before = null ,
458
- \DateTime $ added_after = null ,
459
- \DateTime $ added_before = null ,
456
+ \DateTime | null $ created_after = null ,
457
+ \DateTime | null $ created_before = null ,
458
+ \DateTime | null $ added_after = null ,
459
+ \DateTime | null $ added_before = null ,
460
460
bool $ include_total_count = false ,
461
461
string $ after_cursor = '' ,
462
462
string $ before_cursor = '' ,
@@ -669,10 +669,10 @@ public function remove_tag_from_subscriber_by_email(int $tag_id, string $email_a
669
669
public function get_tag_subscriptions (
670
670
int $ tag_id ,
671
671
string $ subscriber_state = 'active ' ,
672
- \DateTime $ created_after = null ,
673
- \DateTime $ created_before = null ,
674
- \DateTime $ tagged_after = null ,
675
- \DateTime $ tagged_before = null ,
672
+ \DateTime | null $ created_after = null ,
673
+ \DateTime | null $ created_before = null ,
674
+ \DateTime | null $ tagged_after = null ,
675
+ \DateTime | null $ tagged_before = null ,
676
676
bool $ include_total_count = false ,
677
677
string $ after_cursor = '' ,
678
678
string $ before_cursor = '' ,
@@ -768,10 +768,10 @@ public function get_email_templates(
768
768
public function get_subscribers (
769
769
string $ subscriber_state = 'active ' ,
770
770
string $ email_address = '' ,
771
- \DateTime $ created_after = null ,
772
- \DateTime $ created_before = null ,
773
- \DateTime $ updated_after = null ,
774
- \DateTime $ updated_before = null ,
771
+ \DateTime | null $ created_after = null ,
772
+ \DateTime | null $ created_before = null ,
773
+ \DateTime | null $ updated_after = null ,
774
+ \DateTime | null $ updated_before = null ,
775
775
string $ sort_field = 'id ' ,
776
776
string $ sort_order = 'desc ' ,
777
777
bool $ include_total_count = false ,
@@ -1115,8 +1115,8 @@ public function create_broadcast(
1115
1115
string $ content = '' ,
1116
1116
string $ description = '' ,
1117
1117
bool $ public = false ,
1118
- \DateTime $ published_at = null ,
1119
- \DateTime $ send_at = null ,
1118
+ \DateTime | null $ published_at = null ,
1119
+ \DateTime | null $ send_at = null ,
1120
1120
string $ email_address = '' ,
1121
1121
string $ email_template_id = '' ,
1122
1122
string $ thumbnail_alt = '' ,
@@ -1223,8 +1223,8 @@ public function update_broadcast(
1223
1223
string $ content = '' ,
1224
1224
string $ description = '' ,
1225
1225
bool $ public = false ,
1226
- \DateTime $ published_at = null ,
1227
- \DateTime $ send_at = null ,
1226
+ \DateTime | null $ published_at = null ,
1227
+ \DateTime | null $ send_at = null ,
1228
1228
string $ email_address = '' ,
1229
1229
string $ email_template_id = '' ,
1230
1230
string $ thumbnail_alt = '' ,
@@ -1606,14 +1606,14 @@ public function create_purchase(
1606
1606
string $ transaction_id ,
1607
1607
array $ products ,
1608
1608
string $ currency = 'USD ' ,
1609
- string $ first_name = null ,
1610
- string $ status = null ,
1609
+ string | null $ first_name = null ,
1610
+ string | null $ status = null ,
1611
1611
float $ subtotal = 0 ,
1612
1612
float $ tax = 0 ,
1613
1613
float $ shipping = 0 ,
1614
1614
float $ discount = 0 ,
1615
1615
float $ total = 0 ,
1616
- \DateTime $ transaction_time = null
1616
+ \DateTime | null $ transaction_time = null
1617
1617
) {
1618
1618
// Build parameters.
1619
1619
$ options = [
0 commit comments