PHPDoc fixes

This commit is contained in:
Valentin 2019-07-13 00:04:51 +03:00
parent ddaf1becf3
commit eae95c4e49
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}