-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare nullable parameter types explicitly for PHP 8.4 compatibility
- Loading branch information
Showing
7 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ trait MimeAssertionsTrait | |
* $I->assertEmailAddressContains('To', '[email protected]'); | ||
* ``` | ||
*/ | ||
public function assertEmailAddressContains(string $headerName, string $expectedValue, Email $email = null): void | ||
public function assertEmailAddressContains(string $headerName, string $expectedValue, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new MimeConstraint\EmailAddressContains($headerName, $expectedValue)); | ||
|
@@ -35,7 +35,7 @@ public function assertEmailAddressContains(string $headerName, string $expectedV | |
* $I->assertEmailAttachmentCount(1); | ||
* ``` | ||
*/ | ||
public function assertEmailAttachmentCount(int $count, Email $email = null): void | ||
public function assertEmailAttachmentCount(int $count, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new MimeConstraint\EmailAttachmentCount($count)); | ||
|
@@ -50,7 +50,7 @@ public function assertEmailAttachmentCount(int $count, Email $email = null): voi | |
* $I->assertEmailHasHeader('Bcc'); | ||
* ``` | ||
*/ | ||
public function assertEmailHasHeader(string $headerName, Email $email = null): void | ||
public function assertEmailHasHeader(string $headerName, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new MimeConstraint\EmailHasHeader($headerName)); | ||
|
@@ -66,7 +66,7 @@ public function assertEmailHasHeader(string $headerName, Email $email = null): v | |
* $I->assertEmailHeaderNotSame('To', '[email protected]'); | ||
* ``` | ||
*/ | ||
public function assertEmailHeaderNotSame(string $headerName, string $expectedValue, Email $email = null): void | ||
public function assertEmailHeaderNotSame(string $headerName, string $expectedValue, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new LogicalNot(new MimeConstraint\EmailHeaderSame($headerName, $expectedValue))); | ||
|
@@ -82,7 +82,7 @@ public function assertEmailHeaderNotSame(string $headerName, string $expectedVal | |
* $I->assertEmailHeaderSame('To', '[email protected]'); | ||
* ``` | ||
*/ | ||
public function assertEmailHeaderSame(string $headerName, string $expectedValue, Email $email = null): void | ||
public function assertEmailHeaderSame(string $headerName, string $expectedValue, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new MimeConstraint\EmailHeaderSame($headerName, $expectedValue)); | ||
|
@@ -97,7 +97,7 @@ public function assertEmailHeaderSame(string $headerName, string $expectedValue, | |
* $I->assertEmailHtmlBodyContains('Successful registration'); | ||
* ``` | ||
*/ | ||
public function assertEmailHtmlBodyContains(string $text, Email $email = null): void | ||
public function assertEmailHtmlBodyContains(string $text, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new MimeConstraint\EmailHtmlBodyContains($text)); | ||
|
@@ -112,7 +112,7 @@ public function assertEmailHtmlBodyContains(string $text, Email $email = null): | |
* $I->assertEmailHtmlBodyNotContains('userpassword'); | ||
* ``` | ||
*/ | ||
public function assertEmailHtmlBodyNotContains(string $text, Email $email = null): void | ||
public function assertEmailHtmlBodyNotContains(string $text, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new LogicalNot(new MimeConstraint\EmailHtmlBodyContains($text))); | ||
|
@@ -127,7 +127,7 @@ public function assertEmailHtmlBodyNotContains(string $text, Email $email = null | |
* $I->assertEmailNotHasHeader('Bcc'); | ||
* ``` | ||
*/ | ||
public function assertEmailNotHasHeader(string $headerName, Email $email = null): void | ||
public function assertEmailNotHasHeader(string $headerName, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new LogicalNot(new MimeConstraint\EmailHasHeader($headerName))); | ||
|
@@ -142,7 +142,7 @@ public function assertEmailNotHasHeader(string $headerName, Email $email = null) | |
* $I->assertEmailTextBodyContains('Example text body'); | ||
* ``` | ||
*/ | ||
public function assertEmailTextBodyContains(string $text, Email $email = null): void | ||
public function assertEmailTextBodyContains(string $text, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new MimeConstraint\EmailTextBodyContains($text)); | ||
|
@@ -157,7 +157,7 @@ public function assertEmailTextBodyContains(string $text, Email $email = null): | |
* $I->assertEmailTextBodyNotContains('My secret text body'); | ||
* ``` | ||
*/ | ||
public function assertEmailTextBodyNotContains(string $text, Email $email = null): void | ||
public function assertEmailTextBodyNotContains(string $text, ?Email $email = null): void | ||
{ | ||
$email = $this->verifyEmailObject($email, __FUNCTION__); | ||
$this->assertThat($email, new LogicalNot(new MimeConstraint\EmailTextBodyContains($text))); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters