function AbstractNormalizerContextBuilder::withAllowExtraAttributes
If AbstractNormalizer::ATTRIBUTES are specified, and the source has fields that are not part of that list, configures whether to ignore those attributes or throw an ExtraAttributesException.
File
-
vendor/
symfony/ serializer/ Context/ Normalizer/ AbstractNormalizerContextBuilder.php, line 101
Class
- AbstractNormalizerContextBuilder
- A helper providing autocompletion for available AbstractNormalizer options.
Namespace
Symfony\Component\Serializer\Context\NormalizerCode
public function withAllowExtraAttributes(?bool $allowExtraAttributes) : static {
return $this->with(AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES, $allowExtraAttributes);
}