mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
Update ScalarNormalizer.php
This commit is contained in:
parent
62cfcafcbb
commit
4e45e9e785
@ -15,12 +15,14 @@ namespace Hyperf\Utils\Serializer;
|
||||
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
use function get_class;
|
||||
use function is_scalar;
|
||||
|
||||
class ScalarNormalizer implements NormalizerInterface, DenormalizerInterface, CacheableSupportsMethodInterface
|
||||
{
|
||||
public function hasCacheableSupportsMethod(): bool
|
||||
{
|
||||
return \get_class($this) === __CLASS__;
|
||||
return get_class($this) === __CLASS__;
|
||||
}
|
||||
|
||||
public function denormalize($data, $class, $format = null, array $context = [])
|
||||
|
Loading…
Reference in New Issue
Block a user