Skip to content

Commit

Permalink
added $context to supportsNormalization
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 committed May 28, 2022
1 parent e41f3d2 commit ef18c11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Serializer/Normalizer/FormErrorNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function normalize(mixed $object, string $format = null, array $context =
/**
* {@inheritdoc}
*/
public function supportsNormalization(mixed $data, string $format = null): bool
public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool
{
return $data instanceof FormInterface && $data->isSubmitted() && !$data->isValid();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/Normalizer/UnsubmittedFormNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function normalize(mixed $object, string $format = null, array $context =
/**
* {@inheritdoc}
*/
public function supportsNormalization(mixed $data, string $format = null): bool
public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool
{
return $data instanceof FormInterface && !$data->isSubmitted();
}
Expand Down

0 comments on commit ef18c11

Please sign in to comment.