@@ -20,7 +20,7 @@ trait MimeAssertionsTrait
20
20
* $I->assertEmailAddressContains('To', '[email protected] ');
21
21
* ```
22
22
*/
23
- public function assertEmailAddressContains (string $ headerName , string $ expectedValue , Email $ email = null ): void
23
+ public function assertEmailAddressContains (string $ headerName , string $ expectedValue , ? Email $ email = null ): void
24
24
{
25
25
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
26
26
$ this ->assertThat ($ email , new MimeConstraint \EmailAddressContains ($ headerName , $ expectedValue ));
@@ -35,7 +35,7 @@ public function assertEmailAddressContains(string $headerName, string $expectedV
35
35
* $I->assertEmailAttachmentCount(1);
36
36
* ```
37
37
*/
38
- public function assertEmailAttachmentCount (int $ count , Email $ email = null ): void
38
+ public function assertEmailAttachmentCount (int $ count , ? Email $ email = null ): void
39
39
{
40
40
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
41
41
$ this ->assertThat ($ email , new MimeConstraint \EmailAttachmentCount ($ count ));
@@ -50,7 +50,7 @@ public function assertEmailAttachmentCount(int $count, Email $email = null): voi
50
50
* $I->assertEmailHasHeader('Bcc');
51
51
* ```
52
52
*/
53
- public function assertEmailHasHeader (string $ headerName , Email $ email = null ): void
53
+ public function assertEmailHasHeader (string $ headerName , ? Email $ email = null ): void
54
54
{
55
55
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
56
56
$ this ->assertThat ($ email , new MimeConstraint \EmailHasHeader ($ headerName ));
@@ -66,7 +66,7 @@ public function assertEmailHasHeader(string $headerName, Email $email = null): v
66
66
* $I->assertEmailHeaderNotSame('To', '[email protected] ');
67
67
* ```
68
68
*/
69
- public function assertEmailHeaderNotSame (string $ headerName , string $ expectedValue , Email $ email = null ): void
69
+ public function assertEmailHeaderNotSame (string $ headerName , string $ expectedValue , ? Email $ email = null ): void
70
70
{
71
71
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
72
72
$ this ->assertThat ($ email , new LogicalNot (new MimeConstraint \EmailHeaderSame ($ headerName , $ expectedValue )));
@@ -82,7 +82,7 @@ public function assertEmailHeaderNotSame(string $headerName, string $expectedVal
82
82
* $I->assertEmailHeaderSame('To', '[email protected] ');
83
83
* ```
84
84
*/
85
- public function assertEmailHeaderSame (string $ headerName , string $ expectedValue , Email $ email = null ): void
85
+ public function assertEmailHeaderSame (string $ headerName , string $ expectedValue , ? Email $ email = null ): void
86
86
{
87
87
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
88
88
$ this ->assertThat ($ email , new MimeConstraint \EmailHeaderSame ($ headerName , $ expectedValue ));
@@ -97,7 +97,7 @@ public function assertEmailHeaderSame(string $headerName, string $expectedValue,
97
97
* $I->assertEmailHtmlBodyContains('Successful registration');
98
98
* ```
99
99
*/
100
- public function assertEmailHtmlBodyContains (string $ text , Email $ email = null ): void
100
+ public function assertEmailHtmlBodyContains (string $ text , ? Email $ email = null ): void
101
101
{
102
102
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
103
103
$ this ->assertThat ($ email , new MimeConstraint \EmailHtmlBodyContains ($ text ));
@@ -112,7 +112,7 @@ public function assertEmailHtmlBodyContains(string $text, Email $email = null):
112
112
* $I->assertEmailHtmlBodyNotContains('userpassword');
113
113
* ```
114
114
*/
115
- public function assertEmailHtmlBodyNotContains (string $ text , Email $ email = null ): void
115
+ public function assertEmailHtmlBodyNotContains (string $ text , ? Email $ email = null ): void
116
116
{
117
117
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
118
118
$ this ->assertThat ($ email , new LogicalNot (new MimeConstraint \EmailHtmlBodyContains ($ text )));
@@ -127,7 +127,7 @@ public function assertEmailHtmlBodyNotContains(string $text, Email $email = null
127
127
* $I->assertEmailNotHasHeader('Bcc');
128
128
* ```
129
129
*/
130
- public function assertEmailNotHasHeader (string $ headerName , Email $ email = null ): void
130
+ public function assertEmailNotHasHeader (string $ headerName , ? Email $ email = null ): void
131
131
{
132
132
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
133
133
$ this ->assertThat ($ email , new LogicalNot (new MimeConstraint \EmailHasHeader ($ headerName )));
@@ -142,7 +142,7 @@ public function assertEmailNotHasHeader(string $headerName, Email $email = null)
142
142
* $I->assertEmailTextBodyContains('Example text body');
143
143
* ```
144
144
*/
145
- public function assertEmailTextBodyContains (string $ text , Email $ email = null ): void
145
+ public function assertEmailTextBodyContains (string $ text , ? Email $ email = null ): void
146
146
{
147
147
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
148
148
$ this ->assertThat ($ email , new MimeConstraint \EmailTextBodyContains ($ text ));
@@ -157,7 +157,7 @@ public function assertEmailTextBodyContains(string $text, Email $email = null):
157
157
* $I->assertEmailTextBodyNotContains('My secret text body');
158
158
* ```
159
159
*/
160
- public function assertEmailTextBodyNotContains (string $ text , Email $ email = null ): void
160
+ public function assertEmailTextBodyNotContains (string $ text , ? Email $ email = null ): void
161
161
{
162
162
$ email = $ this ->verifyEmailObject ($ email , __FUNCTION__ );
163
163
$ this ->assertThat ($ email , new LogicalNot (new MimeConstraint \EmailTextBodyContains ($ text )));
0 commit comments