From f31a99ac2267ed097ccec905df2bf1872f5a9e36 Mon Sep 17 00:00:00 2001 From: Gocha Ossinkine Date: Mon, 12 Apr 2021 16:17:19 +0300 Subject: [PATCH] Fix serializer stubs --- stubs/ContextAwareDenormalizerInterface.stub | 2 +- stubs/ContextAwareNormalizerInterface.stub | 2 +- stubs/DenormalizerInterface.stub | 4 ++-- stubs/EncoderInterface.stub | 2 +- stubs/NormalizerInterface.stub | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stubs/ContextAwareDenormalizerInterface.stub b/stubs/ContextAwareDenormalizerInterface.stub index 4c3bdbc8..a0ae8f81 100644 --- a/stubs/ContextAwareDenormalizerInterface.stub +++ b/stubs/ContextAwareDenormalizerInterface.stub @@ -6,7 +6,7 @@ interface ContextAwareDenormalizerInterface extends DenormalizerInterface { /** * @param mixed $data - * @param string $format + * @param string|null $format * @param array $context * @return bool */ diff --git a/stubs/ContextAwareNormalizerInterface.stub b/stubs/ContextAwareNormalizerInterface.stub index 282354a8..aaf97be5 100644 --- a/stubs/ContextAwareNormalizerInterface.stub +++ b/stubs/ContextAwareNormalizerInterface.stub @@ -6,7 +6,7 @@ interface ContextAwareNormalizerInterface extends NormalizerInterface { /** * @param mixed $data - * @param string $format + * @param string|null $format * @param array $context * @return bool */ diff --git a/stubs/DenormalizerInterface.stub b/stubs/DenormalizerInterface.stub index 86ca8bec..83c6ddff 100644 --- a/stubs/DenormalizerInterface.stub +++ b/stubs/DenormalizerInterface.stub @@ -7,7 +7,7 @@ interface DenormalizerInterface /** * @param mixed $data * @param string $type - * @param string $format + * @param string|null $format * @param array $context * @return object|array */ @@ -16,7 +16,7 @@ interface DenormalizerInterface /** * @param mixed $data * @param string $type - * @param string $format + * @param string|null $format * @return bool */ public function supportsDenormalization($data, $type, $format = null); diff --git a/stubs/EncoderInterface.stub b/stubs/EncoderInterface.stub index a3092757..eb6fc97c 100644 --- a/stubs/EncoderInterface.stub +++ b/stubs/EncoderInterface.stub @@ -8,7 +8,7 @@ interface EncoderInterface * @param mixed $data * @param string $format * @param array $context - * @return string|int|float|bool + * @return string */ public function encode($data, $format, array $context = []); diff --git a/stubs/NormalizerInterface.stub b/stubs/NormalizerInterface.stub index 907e296e..7e6ce400 100644 --- a/stubs/NormalizerInterface.stub +++ b/stubs/NormalizerInterface.stub @@ -6,7 +6,7 @@ interface NormalizerInterface { /** * @param mixed $object - * @param string $format + * @param string|null $format * @param array $context * @return array|string|int|float|bool|null */