From d51154b75f4e8934d4997f06a0f1e18de6871a8c 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 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, ]) ;