update patch 1
This commit is contained in:
Vendored
+3
-3
@@ -246,7 +246,7 @@ class Email extends Message
|
||||
$priority = 1;
|
||||
}
|
||||
|
||||
return $this->setHeaderBody('Text', 'X-Priority', sprintf('%d (%s)', $priority, self::PRIORITY_MAP[$priority]));
|
||||
return $this->setHeaderBody('Text', 'X-Priority', \sprintf('%d (%s)', $priority, self::PRIORITY_MAP[$priority]));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -270,7 +270,7 @@ class Email extends Message
|
||||
public function text($body, string $charset = 'utf-8'): static
|
||||
{
|
||||
if (null !== $body && !\is_string($body) && !\is_resource($body)) {
|
||||
throw new \TypeError(sprintf('The body must be a string, a resource or null (got "%s").', get_debug_type($body)));
|
||||
throw new \TypeError(\sprintf('The body must be a string, a resource or null (got "%s").', get_debug_type($body)));
|
||||
}
|
||||
|
||||
$this->cachedBody = null;
|
||||
@@ -301,7 +301,7 @@ class Email extends Message
|
||||
public function html($body, string $charset = 'utf-8'): static
|
||||
{
|
||||
if (null !== $body && !\is_string($body) && !\is_resource($body)) {
|
||||
throw new \TypeError(sprintf('The body must be a string, a resource or null (got "%s").', get_debug_type($body)));
|
||||
throw new \TypeError(\sprintf('The body must be a string, a resource or null (got "%s").', get_debug_type($body)));
|
||||
}
|
||||
|
||||
$this->cachedBody = null;
|
||||
|
||||
Reference in New Issue
Block a user