comparison vendor/symfony/serializer/Normalizer/JsonSerializableNormalizer.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
22 class JsonSerializableNormalizer extends AbstractNormalizer 22 class JsonSerializableNormalizer extends AbstractNormalizer
23 { 23 {
24 /** 24 /**
25 * {@inheritdoc} 25 * {@inheritdoc}
26 */ 26 */
27 public function normalize($object, $format = null, array $context = array()) 27 public function normalize($object, $format = null, array $context = [])
28 { 28 {
29 if ($this->isCircularReference($object, $context)) { 29 if ($this->isCircularReference($object, $context)) {
30 return $this->handleCircularReference($object); 30 return $this->handleCircularReference($object);
31 } 31 }
32 32
58 } 58 }
59 59
60 /** 60 /**
61 * {@inheritdoc} 61 * {@inheritdoc}
62 */ 62 */
63 public function denormalize($data, $class, $format = null, array $context = array()) 63 public function denormalize($data, $class, $format = null, array $context = [])
64 { 64 {
65 throw new LogicException(sprintf('Cannot denormalize with "%s".', \JsonSerializable::class)); 65 throw new LogicException(sprintf('Cannot denormalize with "%s".', \JsonSerializable::class));
66 } 66 }
67 } 67 }