composer update
This commit is contained in:
12
vendor/symfony/mime/MessageConverter.php
vendored
12
vendor/symfony/mime/MessageConverter.php
vendored
@@ -55,13 +55,13 @@ final class MessageConverter
|
||||
} elseif ($parts[0] instanceof TextPart) {
|
||||
$email = self::createEmailFromTextPart($message, $parts[0]);
|
||||
} else {
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', \get_class($message)));
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', get_debug_type($message)));
|
||||
}
|
||||
|
||||
return self::attachParts($email, \array_slice($parts, 1));
|
||||
}
|
||||
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', \get_class($message)));
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', get_debug_type($message)));
|
||||
}
|
||||
|
||||
private static function createEmailFromTextPart(Message $message, TextPart $part): Email
|
||||
@@ -73,7 +73,7 @@ final class MessageConverter
|
||||
return (new Email(clone $message->getHeaders()))->html($part->getBody(), $part->getPreparedHeaders()->getHeaderParameter('Content-Type', 'charset') ?: 'utf-8');
|
||||
}
|
||||
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', \get_class($message)));
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', get_debug_type($message)));
|
||||
}
|
||||
|
||||
private static function createEmailFromAlternativePart(Message $message, AlternativePart $part): Email
|
||||
@@ -90,7 +90,7 @@ final class MessageConverter
|
||||
;
|
||||
}
|
||||
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', \get_class($message)));
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', get_debug_type($message)));
|
||||
}
|
||||
|
||||
private static function createEmailFromRelatedPart(Message $message, RelatedPart $part): Email
|
||||
@@ -101,7 +101,7 @@ final class MessageConverter
|
||||
} elseif ($parts[0] instanceof TextPart) {
|
||||
$email = self::createEmailFromTextPart($message, $parts[0]);
|
||||
} else {
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', \get_class($message)));
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', get_debug_type($message)));
|
||||
}
|
||||
|
||||
return self::attachParts($email, \array_slice($parts, 1));
|
||||
@@ -111,7 +111,7 @@ final class MessageConverter
|
||||
{
|
||||
foreach ($parts as $part) {
|
||||
if (!$part instanceof DataPart) {
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', \get_class($email)));
|
||||
throw new RuntimeException(sprintf('Unable to create an Email from an instance of "%s" as the body is too complex.', get_debug_type($email)));
|
||||
}
|
||||
|
||||
$headers = $part->getPreparedHeaders();
|
||||
|
||||
Reference in New Issue
Block a user