diff --git a/serializer.rst b/serializer.rst index d541310aa15..cd181787763 100644 --- a/serializer.rst +++ b/serializer.rst @@ -344,7 +344,7 @@ instance to disallow extra fields while deserializing: return static function (FrameworkConfig $framework): void { $framework->serializer() - ->defaultContext('', [ + ->defaultContext([ 'allow_extra_attributes' => false, ]) ;