8000 minor #27954 [Form] Fix PHPDoc for FormConfigBuilder $dataClass argum… · symfony/symfony@13a4003 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13a4003

Browse files
committed
minor #27954 [Form] Fix PHPDoc for FormConfigBuilder $dataClass argument (emodric)
This PR was merged into the 2.8 branch. Discussion ---------- [Form] Fix PHPDoc for FormConfigBuilder $dataClass argument | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A `$dataClass` constructor argument of `FormConfigBuilder` obviously allows `null` as its value and it even has a `?string` typehint in `master` branch, so this fixes the PHPDoc typehint to match. Commits ------- 9854a26 [Form] Fix PHPDoc for FormConfigBuilder $dataClass argument
2 parents 091f9ff + 9854a26 commit 13a4003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Form/FormConfigBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
138138
private $data;
139139

140140
/**
141-
* @var string
141+
* @var string|null
142142
*/
143143
private $dataClass;
144144

@@ -181,7 +181,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
181181
* Creates an empty form configuration.
182182
*
183183
* @param string|int $name The form name
184-
* @param string $dataClass The class of the form's data
184+
* @param string|null $dataClass The class of the form's data
185185
* @param EventDispatcherInterface $dispatcher The event dispatcher
186186
* @param array $options The form options
187187
*

0 commit comments

Comments
 (0)
0