Skip to content

Commit a5caa1b

Browse files
committed
fix: remove getters
1 parent 465a4b9 commit a5caa1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Serializer/ArgumentResolver/UserInputResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ public function supports(Request $request, ArgumentMetadata $argument): bool
5050
public function resolve(Request $request, ArgumentMetadata $argument): iterable
5151
{
5252
$attribute = $this->getAttribute($argument);
53-
$context = array_merge($attribute->getSerializationContext(), [
53+
$context = array_merge($attribute->serializationContext, [
5454
DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS => true,
5555
]);
56-
$format = $attribute->getFormat() ?? $request->attributes->get('_format', 'json');
56+
$format = $attribute->format ?? $request->attributes->get('_format', 'json');
5757

5858
$input = null;
5959
try {
6060
$input = $this->serializer->deserialize(data: $request->getContent(), type: $argument->getType(), format: $format, context: $context);
6161

62-
$errors = $this->validator->validate(value: $input, groups: $attribute->getValidationGroups());
62+
$errors = $this->validator->validate(value: $input, groups: $attribute->validationGroups);
6363
} catch (PartialDenormalizationException $e) {
6464
$errors = new ConstraintViolationList();
6565

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy