We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaf1be commit eae95c4Copy full SHA for eae95c4
src/Symfony/Component/Form/Form.php
@@ -140,9 +140,9 @@ class Form implements \IteratorAggregate, FormInterface
140
private $lockSetData = false;
141
142
/**
143
- * @var string|int|null
+ * @var string
144
*/
145
- private $name;
+ private $name = '';
146
147
148
* @var bool Whether the form inherits its underlying data from its parent
@@ -211,7 +211,7 @@ public function getPropertyPath()
211
return $this->propertyPath;
212
}
213
214
- if (null === $this->name || '' === $this->name) {
+ if ('' === $this->name) {
215
return null;
216
217
0 commit comments