8000 merged branch willdurand/fix-form-type-doc (PR #3880) · hostingnuggets/symfony@570bb6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 570bb6a

Browse files
committed
merged branch willdurand/fix-form-type-doc (PR symfony#3880)
Commits ------- 6f56dfc [Form] Fixed DateType default options 779d3bb [Form] Fixed documentation, and the DateType (default options) Discussion ---------- [Form] Fixed documentation, and the DateType (default options) --------------------------------------------------------------------------- by fabpot at 2012-04-11T16:48:04Z That breaks the tests. --------------------------------------------------------------------------- by willdurand at 2012-04-11T16:50:35Z I got an error with the Form test suite before to write this patch.. --------------------------------------------------------------------------- by willdurand at 2012-04-11T16:53:30Z Nevermind, I can see broken tests.. I'm on, sorry --------------------------------------------------------------------------- by willdurand at 2012-04-11T16:57:52Z @fabpot fixed. ``` OK, but incomplete or skipped tests! Tests: 945, Assertions: 1439, Incomplete: 11. ```
2 parents 61bec64 + 6f56dfc commit 570bb6a

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

src/Symfony/Component/Form/AbstractType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ public function createBuilder($name, FormFactoryInterface $factory, array $optio
9292
/**
9393
* Returns the default options for this type.
9494
*
95-
* @param array $options
96-
*
9795
* @return array The default options
9896
*/
9997
public function getDefaultOptions()
@@ -104,8 +102,6 @@ public function getDefaultOptions()
104102
/**
105103
* Returns the allowed option values for each option (if any).
106104
*
107-
* @param array $options
108-
*
109105
* @return array The allowed option values
110106
*/
111107
public function getAllowedOptionValues()

src/Symfony/Component/Form/AbstractTypeExtension.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ public function buildViewBottomUp(FormView $view, FormInterface $form)
6161
/**
6262
* Overrides the default options form the extended type.
6363
*
64-
* @param array $options
65-
*
6664
* @return array
6765
*/
6866
public function getDefaultOptions()
@@ -73,8 +71,6 @@ public function getDefaultOptions()
7371
/**
7472
* Returns the allowed option values for each option (if any).
7573
*
76-
* @param array $options
77-
*
7874
* @return array The allowed option values
7975
*/
8076
public function getAllowedOptionValues()

src/Symfony/Component/Form/Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function buildForm(FormBuilder $builder, array $options)
4444
// If $format is not in the allowed options, it's considered as the pattern of the formatter if it is a string
4545
if (!in_array($format, $allowedFormatOptionValues, true)) {
4646
if (is_string($format)) {
47-
$defaultOptions = $this->getDefaultOptions($options);
47+
$defaultOptions = $this->getDefaultOptions();
4848

4949
$format = $defaultOptions['format'];
5050
$pattern = $options['format'];

src/Symfony/Component/Form/FormTypeInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,13 @@ function createBuilder($name, FormFactoryInterface $factory, array $options);
7575
/**
7676
* Returns the default options for this type.
7777
*
78-
* @param array $options
79-
*
8078
* @return array The default options
8179
*/
8280
function getDefaultOptions();
8381

8482
/**
8583
* Returns the allowed option values for each option (if any).
8684
*
87-
* @param array $options
88-
*
8985
* @return array The allowed option values
9086
*/
9187
function getAllowedOptionValues();

0 commit comments

Comments
 (0)
0