Skip to content

Commit

Permalink
Merge pull request #32 from Elao/help-boolean
Browse files Browse the repository at this point in the history
Allow help option to be a boolean
  • Loading branch information
maximecolin authored Dec 21, 2018
2 parents a7be626 + 47fdfaa commit 7557955
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Form/Extension/FormTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public function configureOptions(OptionsResolver $resolver)
if ($this->autoGenerate) {
$resolver->setDefault('label', true);
}

$resolver->setDefault('translation_domain', $this->defaultTranslationDomain);

$resolver->setDefault('help', false);
$resolver->setAllowedTypes('help', ['null', 'string', 'boolean']);
}
}

0 comments on commit 7557955

Please sign in to comment.