From 44d7ddecf0f39a84134087f702513e0066e89382 Mon Sep 17 00:00:00 2001 From: Gocha Ossinkine Date: Tue, 13 Apr 2021 13:57:04 +0300 Subject: [PATCH] Add missed arguments and methods to serializer stubs --- stubs/ContextAwareDenormalizerInterface.stub | 1 + stubs/NormalizerInterface.stub | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/stubs/ContextAwareDenormalizerInterface.stub b/stubs/ContextAwareDenormalizerInterface.stub index a0ae8f81..9d42b711 100644 --- a/stubs/ContextAwareDenormalizerInterface.stub +++ b/stubs/ContextAwareDenormalizerInterface.stub @@ -6,6 +6,7 @@ interface ContextAwareDenormalizerInterface extends DenormalizerInterface { /** * @param mixed $data + * @param string $type * @param string|null $format * @param array $context * @return bool diff --git a/stubs/NormalizerInterface.stub b/stubs/NormalizerInterface.stub index 7e6ce400..a65b5bed 100644 --- a/stubs/NormalizerInterface.stub +++ b/stubs/NormalizerInterface.stub @@ -11,4 +11,11 @@ interface NormalizerInterface * @return array|string|int|float|bool|null */ public function normalize($object, $format = null, array $context = []); + + /** + * @param mixed $data + * @param string|null $format + * @return bool + */ + public function supportsNormalization($data, $format = null); }