Skip to content

Commit

Permalink
style: make FormNormalizer cleaner
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud RITTI <[email protected]>
  • Loading branch information
arnaud-ritti committed May 2, 2023
1 parent 8d2c34d commit 2161854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer/FormNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function convertFormToArray(FormInterface $form): array

private function parseFormData(FormInterface $form, array &$data, array $ignoredFieldTypes = [], array $verifiableFieldTypes = []): void
{
if (\is_array($form->all()) && $form->count()) {
if ($form->count() > 0) {
foreach ($form->all() as $field) {
$this->parseFormData($field, $data, $ignoredFieldTypes, $verifiableFieldTypes);
}
Expand Down

0 comments on commit 2161854

Please sign in to comment.