Skip to content

Commit

Permalink
[bridge][symfony] Allow choices to be defined as callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Feb 3, 2017
1 parent 59e2653 commit 33284cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Bridge/Symfony/Form/Type/GatewayChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
class GatewayChoiceType extends AbstractType
{
/**
* @var string[]
* @var string[]|callable
*/
protected $defaultChoices;

/**
* @param string[] $defaultChoices
* @param string[]|callable $defaultChoices
*/
public function __construct(array $defaultChoices)
public function __construct($defaultChoices)
{
$this->defaultChoices = $defaultChoices;
}
Expand Down
6 changes: 3 additions & 3 deletions Bridge/Symfony/Form/Type/GatewayFactoriesChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
class GatewayFactoriesChoiceType extends AbstractType
{
/**
* @var string[]
* @var string[]|callable
*/
protected $defaultChoices;

/**
* @param string[] $defaultChoices
* @param string[]|callable $defaultChoices
*/
public function __construct(array $defaultChoices)
public function __construct($defaultChoices)
{
$this->defaultChoices = $defaultChoices;
}
Expand Down

0 comments on commit 33284cb

Please sign in to comment.