From 5f9a259167ccc310c1d0c7934901c961c8601b6b Mon Sep 17 00:00:00 2001 From: HypeMC Date: Mon, 17 Mar 2025 01:27:35 +0100 Subject: [PATCH] [Serializer] Fix `defaultContext` example --- serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ]) ;