Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aada72c

Browse filesBrowse files
Mathieu Piotmpiot
Mathieu Piot
authored andcommitted
Set help option on nul as default
1 parent f948147 commit aada72c
Copy full SHA for aada72c

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Form/Extension/Core/Type/FormType.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/FormType.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ public function configureOptions(OptionsResolver $resolver)
179179
'attr' => array(),
180180
'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.',
181181
'upload_max_size_message' => $uploadMaxSizeMessage, // internal
182-
'help' => '',
182+
'help' => null,
183183
));
184184

185185
$resolver->setAllowedTypes('label_attr', 'array');
186186
$resolver->setAllowedTypes('upload_max_size_message', array('callable'));
187-
$resolver->setAllowedTypes('help', 'string');
187+
$resolver->setAllowedTypes('help', ['string', 'NULL']);
188188
}
189189

190190
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.