From ef747ff76754c525c44268587abc8e9b596ccbf1 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Thu, 26 Jul 2012 08:30:26 +0200 Subject: [PATCH] [Form] Fixed exception message in ObjectChoiceList --- .../Form/Extension/Core/ChoiceList/ObjectChoiceList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php index 89e06c217b..eeb6b646c3 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php @@ -104,7 +104,7 @@ class ObjectChoiceList extends ChoiceList foreach ($choices as $i => $choice) { if (is_array($choice)) { - throw new \InvalidArgumentException('You should pass a plain object array (without groups, $code, $previous) when using the "groupPath" option.'); + throw new \InvalidArgumentException('You should pass a plain object array (without groups) when using the "groupPath" option.'); } try {