Skip to content

Commit eae95c4

Browse files
committed
PHPDoc fixes
1 parent ddaf1be commit eae95c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Form/Form.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ class Form implements \IteratorAggregate, FormInterface
140140
private $lockSetData = false;
141141

142142
/**
143-
* @var string|int|null
143+
* @var string
144144
*/
145-
private $name;
145+
private $name = '';
146146

147147
/**
148148
* @var bool Whether the form inherits its underlying data from its parent
@@ -211,7 +211,7 @@ public function getPropertyPath()
211211
return $this->propertyPath;
212212
}
213213

214-
if (null === $this->name || '' === $this->name) {
214+
if ('' === $this->name) {
215215
return null;
216216
}
217217

0 commit comments

Comments
 (0)