Skip to content

Commit

Permalink
fix return for getSupportedTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman committed Oct 15, 2024
1 parent 9968466 commit 8086bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function supportsNormalization(mixed $data, ?string $format = null, array
*/
public function getSupportedTypes(?string $format): array
{
return [Form::class];
return [Form::class => true];
}

/**
Expand Down Expand Up @@ -122,5 +122,4 @@ private function getErrorMessage(FormError $error)

return $this->translator->trans($error->getMessageTemplate(), $error->getMessageParameters(), 'validators');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ private function normalizeExpandedChoice(FormView $formView): mixed

public function getSupportedTypes(?string $format): array
{
return [Form::class];
return [Form::class => true];
}
}

0 comments on commit 8086bc6

Please sign in to comment.