File tree 1 file changed +0
-10
lines changed
src/Symfony/Component/Mime/Part
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,6 @@ public function getPreparedHeaders(): Headers
57
57
public function bodyToString (): string
58
58
{
59
59
$ parts = $ this ->getParts ();
60
-
61
- if (\count ($ parts ) < 2 ) {
62
- throw new LogicException (sprintf ('A "%s" instance must have at least 2 parts. ' , __CLASS__ ));
63
- }
64
-
65
60
$ string = '' ;
66
61
foreach ($ parts as $ part ) {
67
62
$ string .= '-- ' .$ this ->getBoundary ()."\r\n" .$ part ->toString ()."\r\n" ;
@@ -74,11 +69,6 @@ public function bodyToString(): string
74
69
public function bodyToIterable (): iterable
75
70
{
76
71
$ parts = $ this ->getParts ();
77
-
78
- if (\count ($ parts ) < 2 ) {
79
- throw new LogicException (sprintf ('A "%s" instance must have at least 2 parts. ' , __CLASS__ ));
80
- }
81
-
82
72
foreach ($ parts as $ part ) {
83
73
yield '-- ' .$ this ->getBoundary ()."\r\n" ;
84
74
foreach ($ part ->toIterable () as $ chunk ) {
You can’t perform that action at this time.
0 commit comments