Skip to content

Commit e0a0f85

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: remove an invalid test [Translation] fix support of `TranslatableInterface` in `IdentityTranslator` Fix various bool-type coercions
2 parents bccc632 + 664d5e8 commit e0a0f85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/EmailTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ private function generateSomeParts(): array
477477
public function testAttachments()
478478
{
479479
// inline part
480-
$contents = file_get_contents($name = __DIR__.'/Fixtures/mimetypes/test', 'r');
480+
$contents = file_get_contents($name = __DIR__.'/Fixtures/mimetypes/test');
481481
$att = new DataPart($file = fopen($name, 'r'), 'test');
482482
$inline = (new DataPart($contents, 'test'))->asInline();
483483
$e = new Email();
@@ -618,7 +618,7 @@ public function testHtmlBodyAcceptedTypes()
618618
$email->html(null);
619619
$this->assertNull($email->getHtmlBody());
620620

621-
$contents = file_get_contents(__DIR__.'/Fixtures/mimetypes/test', 'r');
621+
$contents = file_get_contents(__DIR__.'/Fixtures/mimetypes/test');
622622
$email->html($contents);
623623
$this->assertSame($contents, $email->getHtmlBody());
624624
}
@@ -641,7 +641,7 @@ public function testTextBodyAcceptedTypes()
641641
$email->text(null);
642642
$this->assertNull($email->getTextBody());
643643

644-
$contents = file_get_contents(__DIR__.'/Fixtures/mimetypes/test', 'r');
644+
$contents = file_get_contents(__DIR__.'/Fixtures/mimetypes/test');
645645
$email->text($contents);
646646
$this->assertSame($contents, $email->getTextBody());
647647
}

0 commit comments

Comments
 (0)