Files
laysense.cn/vendor/guzzlehttp/guzzle/src/NonSerializableTrait.php
T

22 lines
389 B
PHP

<?php
declare(strict_types=1);
namespace GuzzleHttp;
/**
* @internal
*/
trait NonSerializableTrait
{
public function __serialize(): array
{
throw new \LogicException(static::class.' should never be serialized');
}
public function __unserialize(array $data): void
{
throw new \LogicException(static::class.' should never be unserialized');
}
}