Browse Source

[Form] tweaked an exception message

Fabien Potencier 13 năm trước cách đây
mục cha
commit
48c0f50fa2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Symfony/Component/Form/FormFactory.php

+ 1 - 1
src/Symfony/Component/Form/FormFactory.php

@@ -221,7 +221,7 @@ class FormFactory implements FormFactoryInterface
         while (null !== $type) {
             if ($type instanceof FormTypeInterface) {
                 if ($type->getName() == $type->getParent($options)) {
-                    throw new FormException(sprintf('The "%s" form type name ("%s") is not valid. It contains circullar reference to parent type name ("%s")', get_class($type), $type->getName(), $type->getParent($options)));
+                    throw new FormException(sprintf('The form type name "%s" for class "%s" cannot be the same as the parent type.', $type->getName(), get_class($type)));
                 }
 
                 $this->addType($type);