diff --git a/doc/cookbook/exclusion_strategies.rst b/doc/cookbook/exclusion_strategies.rst index 066dabcf2..5b81cf209 100644 --- a/doc/cookbook/exclusion_strategies.rst +++ b/doc/cookbook/exclusion_strategies.rst @@ -324,7 +324,7 @@ By default the serializer exposes three variables (`object`, `context` and `prop private $name; /** - * @Exclude(if="someMethod(object, context, property_metadata)") + * @Expose(if="someMethod(object, context, property_metadata)") */ private $name2; }