Skip to content

Commit 1f9a60c

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: ignore the cached body when comparing e-mails for equality fix PHP syntax to be compatible with 7.2 and 7.3 [HttpFoundation] Add session ID regex comment [Workflow] Fix typo in MethodMarkingStore Fix CS
2 parents 1d4abcd + 445b976 commit 1f9a60c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Email.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,7 @@ private function generateBody(): AbstractPart
477477
}
478478
}
479479

480-
$this->cachedBody = $part;
481-
482-
return $part;
480+
return $this->cachedBody = $part;
483481
}
484482

485483
private function prepareParts(): ?array

Tests/MessageConverterTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ private function assertConversion(Email $expected)
7575
$expected->html('HTML content');
7676
$converted->html('HTML content');
7777
}
78+
79+
$r = new \ReflectionProperty($expected, 'cachedBody');
80+
$r->setAccessible(true);
81+
$r->setValue($expected, null);
82+
$r->setValue($converted, null);
83+
7884
$this->assertEquals($expected, $converted);
7985
}
8086
}

0 commit comments

Comments
 (0)