Skip to content

Commit b6705f4

Browse files
authored
Merge pull request #49 from elbformat/php84-deprecation
Fixed more deprecations
2 parents 24dc7ad + 2b980fc commit b6705f4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v1.5.9
4+
* Fix: More deprecation warnings for implicit nullable parameter.
5+
36
## v1.5.8
47
* Fix: Deprecation warning for implicit nullable parameter.
58

src/Context/MailerContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function noEmailIsBeingSent(?string $recipient = null, ?string $subject =
7373

7474
#[Then('the e-mail contains')]
7575
#[Then('the e-mail contains :text')]
76-
public function theEMailContains(string $text = null, PyStringNode $stringNode = null): void
76+
public function theEMailContains(?string $text = null, ?PyStringNode $stringNode = null): void
7777
{
7878
$mailText = (string) ($this->getLastMail()->getHtmlBody() ?? $this->getLastMail()->getTextBody());
7979
$textToFind = $text ?? ($stringNode ? $stringNode->getRaw() : '');
@@ -84,7 +84,7 @@ public function theEMailContains(string $text = null, PyStringNode $stringNode =
8484

8585
#[Then('the e-mail does not contain')]
8686
#[Then('the e-mail does not contain :text')]
87-
public function theEMailDoesNotContain(string $text = null, PyStringNode $stringNode = null): void
87+
public function theEMailDoesNotContain(?string $text = null, ?PyStringNode $stringNode = null): void
8888
{
8989
$mailText = $this->getLastMail()->getHtmlBody() ?? $this->getLastMail()->getTextBody();
9090
$textToFind = $text ?? ($stringNode ? $stringNode->getRaw() : '');

0 commit comments

Comments
 (0)