Explorar o código

[Form] tweaked comment

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
40b84320d6

+ 1 - 2
src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php

@@ -18,8 +18,7 @@ class HiddenType extends AbstractType
     public function getDefaultOptions(array $options)
     {
         return array(
-            // Force hidden fields to be not required
-            // More info: https://github.com/symfony/symfony/issues/1091
+            // hidden fields cannot have a required attribute
             'required'       => false,
             // Pass errors to the parent
             'error_bubbling' => true,