The functions for assertMailSentSubject, and assertMailBodyContainsStr need to have union types similar to assertMailSentTo
Works: public function assertMailSentTo(array|string $expected, AssertableMessage|Email $mail)
Fails: public function assertMailSubject(string $expected, Email $mail)
Fails: public function assertMailBodyContainsString(string $needle, Email $mail)
Note: I think most of the assertions need the union type.
Thanks for looking into this.
Error message: Tests\TestCase::assertMailSubject(): Argument #2 ($mail) must be of type Symfony\Component\Mime\Email, KirschbaumDevelopment\MailIntercept\AssertableMessage given
The functions for assertMailSentSubject, and assertMailBodyContainsStr need to have union types similar to assertMailSentTo
Works: public function assertMailSentTo(array|string $expected, AssertableMessage|Email $mail)
Fails: public function assertMailSubject(string $expected, Email $mail) Fails: public function assertMailBodyContainsString(string $needle, Email $mail)
Note: I think most of the assertions need the union type.
Thanks for looking into this.
Error message: Tests\TestCase::assertMailSubject(): Argument #2 ($mail) must be of type Symfony\Component\Mime\Email, KirschbaumDevelopment\MailIntercept\AssertableMessage given