Skip to content

Commit

Permalink
Merge pull request schmittjoh#40 from petesiss/formbuilder-fix
Browse files Browse the repository at this point in the history
Fix ChoosePaymentMethodType buildForm to keep up with Symfony HEAD
  • Loading branch information
schmittjoh committed May 31, 2012
2 parents 6bbc5e6 + 019c0b2 commit d6c24c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Form/ChoosePaymentMethodType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use JMS\Payment\CoreBundle\PluginController\PluginControllerInterface;
use Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\AbstractType;

/**
Expand All @@ -36,7 +36,7 @@ public function __construct(PluginControllerInterface $pluginController, array $
$this->paymentMethods = $paymentMethods;
}

public function buildForm(FormBuilder $builder, array $options)
public function buildForm(FormBuilderInterface $builder, array $options)
{
if (!isset($options['currency'])) {
throw new \InvalidArgumentException(sprintf('The option "currency" must be given for form type "%s".', $this->getName()));
Expand Down

0 comments on commit d6c24c1

Please sign in to comment.