Update to laravel 7

This commit is contained in:
KodeStar
2022-03-10 11:54:29 +00:00
parent 61a5a1a8b0
commit f9a19fce91
7170 changed files with 274189 additions and 283773 deletions

View File

@@ -11,10 +11,10 @@
namespace Symfony\Component\Mime;
use Symfony\Component\Mime\Exception\LogicException;
/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @experimental in 4.3
*/
class RawMessage implements \Serializable
{
@@ -33,8 +33,11 @@ class RawMessage implements \Serializable
if (\is_string($this->message)) {
return $this->message;
}
if ($this->message instanceof \Traversable) {
$this->message = iterator_to_array($this->message, false);
}
return $this->message = implode('', iterator_to_array($this->message, false));
return $this->message = implode('', $this->message);
}
public function toIterable(): iterable
@@ -53,10 +56,17 @@ class RawMessage implements \Serializable
$this->message = $message;
}
/**
* @throws LogicException if the message is not valid
*/
public function ensureValidity()
{
}
/**
* @internal
*/
final public function serialize()
final public function serialize(): string
{
return serialize($this->__serialize());
}
@@ -69,17 +79,11 @@ class RawMessage implements \Serializable
$this->__unserialize(unserialize($serialized));
}
/**
* @internal
*/
public function __serialize(): array
{
return [$this->message];
return [$this->toString()];
}
/**
* @internal
*/
public function __unserialize(array $data): void
{
[$this->message] = $data;