diff --git a/serializer.rst b/serializer.rst index 47ea5b66c60..5c82e6e566a 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, ]) ;