Skip to content

Commit

Permalink
remove void return hints
Browse files Browse the repository at this point in the history
  • Loading branch information
alterphp committed Jan 30, 2018
1 parent 84eb3d2 commit 83d39cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Form/Type/Security/AdminRolesType.php
Expand Up @@ -32,7 +32,7 @@ public function __construct($editableRolesBuilder)
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $formBuilder, array $options): void
public function buildForm(FormBuilderInterface $formBuilder, array $options)
{
/*
* The form shows only roles that the current user can edit for the targeted user. Now we still need to persist
Expand All @@ -43,11 +43,11 @@ public function buildForm(FormBuilderInterface $formBuilder, array $options): vo
*/
$transformer = new RestoreRolesTransformer($this->rolesBuilder);
// GET METHOD
$formBuilder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($transformer): void {
$formBuilder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($transformer) {
$transformer->setOriginalRoles($event->getData());
});
// POST METHOD
$formBuilder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($transformer): void {
$formBuilder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($transformer) {
$transformer->setOriginalRoles($event->getForm()->getData());
});
$formBuilder->addModelTransformer($transformer);
Expand All @@ -56,7 +56,7 @@ public function buildForm(FormBuilderInterface $formBuilder, array $options): vo
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options): void
public function buildView(FormView $view, FormInterface $form, array $options)
{
$attr = $view->vars['attr'];
$view->vars['choice_translation_domain'] = false; // RolesBuilder all ready does translate them
Expand All @@ -66,7 +66,7 @@ public function buildView(FormView $view, FormInterface $form, array $options):
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver): void
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
// make expanded default value
Expand Down

0 comments on commit 83d39cc

Please sign in to comment.