Update ScalarNormalizer.php

This commit is contained in:
黄朝晖 2019-08-04 14:47:57 +08:00 committed by GitHub
parent 62cfcafcbb
commit 4e45e9e785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [])