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); }