PHPDoc fixes
This commit is contained in:
parent
ddaf1becf3
commit
eae95c4e49
@ -140,9 +140,9 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
private $lockSetData = false;
|
||||
|
||||
/**
|
||||
* @var string|int|null
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
private $name = '';
|
||||
|
||||
/**
|
||||
* @var bool Whether the form inherits its underlying data from its parent
|
||||
@ -211,7 +211,7 @@ class Form implements \IteratorAggregate, FormInterface
|
||||
return $this->propertyPath;
|
||||
}
|
||||
|
||||
if (null === $this->name || '' === $this->name) {
|
||||
if ('' === $this->name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user