From a3cbf6bbf6c54e5e273e837699b01c0ff416c362 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Thu, 26 Jul 2012 00:23:16 +0200 Subject: [PATCH] [Form] add type hint in ChoiceList --- .../Component/Form/Extension/Core/ChoiceList/ChoiceList.php | 6 +++--- .../Form/Extension/Core/ChoiceList/SimpleChoiceList.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php index 75d1928ce1..7ad15d04b2 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php @@ -256,7 +256,7 @@ class ChoiceList implements ChoiceListInterface * * @throws InvalidConfigurationException If no valid value or index could be created for a choice. */ - protected function addChoices(&$bucketForPreferred, &$bucketForRemaining, $choices, array $labels, array $preferredChoices) + protected function addChoices(array &$bucketForPreferred, array &$bucketForRemaining, $choices, array $labels, array $preferredChoices) { // Add choices to the nested buckets foreach ($choices as $group => $choice) { @@ -298,7 +298,7 @@ class ChoiceList implements ChoiceListInterface * * @throws InvalidConfigurationException If no valid value or index could be created for a choice. */ - protected function addChoiceGroup($group, &$bucketForPreferred, &$bucketForRemaining, array $choices, array $labels, array $preferredChoices) + protected function addChoiceGroup($group, array &$bucketForPreferred, array &$bucketForRemaining, array $choices, array $labels, array $preferredChoices) { // If this is a choice group, create a new level in the choice // key hierarchy @@ -335,7 +335,7 @@ class ChoiceList implements ChoiceListInterface * * @throws InvalidConfigurationException If no valid value or index could be created. */ - protected function addChoice(&$bucketForPreferred, &$bucketForRemaining, $choice, $label, array $preferredChoices) + protected function addChoice(array &$bucketForPreferred, array &$bucketForRemaining, $choice, $label, array $preferredChoices) { $index = $this->createIndex($choice); diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php index 7792676e2f..914dbe5fdb 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php @@ -86,7 +86,7 @@ class SimpleChoiceList extends ChoiceList * @param array $labels Ignored. * @param array $preferredChoices The preferred choices. */ - protected function addChoices(&$bucketForPreferred, &$bucketForRemaining, $choices, array $labels, array $preferredChoices) + protected function addChoices(array &$bucketForPreferred, array &$bucketForRemaining, $choices, array $labels, array $preferredChoices) { // Add choices to the nested buckets foreach ($choices as $choice => $label) {