package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -21,8 +21,8 @@ use Symfony\Component\Mime\Part\TextPart;
*/
class Message extends RawMessage
{
private $headers;
private $body;
private Headers $headers;
private ?AbstractPart $body;
public function __construct(Headers $headers = null, AbstractPart $body = null)
{
@@ -42,8 +42,11 @@ class Message extends RawMessage
/**
* @return $this
*/
public function setBody(AbstractPart $body = null)
public function setBody(AbstractPart $body = null): static
{
if (1 > \func_num_args()) {
trigger_deprecation('symfony/mime', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
}
$this->body = $body;
return $this;
@@ -57,7 +60,7 @@ class Message extends RawMessage
/**
* @return $this
*/
public function setHeaders(Headers $headers)
public function setHeaders(Headers $headers): static
{
$this->headers = $headers;