PHPDoc fixes

This commit is contained in:
Valentin 2019-07-13 00:04:51 +03:00
parent ddaf1becf3
commit eae95c4e49

View File

@ -140,9 +140,9 @@ class Form implements \IteratorAggregate, FormInterface
private $lockSetData = false; 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 * @var bool Whether the form inherits its underlying data from its parent
@ -211,7 +211,7 @@ class Form implements \IteratorAggregate, FormInterface
return $this->propertyPath; return $this->propertyPath;
} }
if (null === $this->name || '' === $this->name) { if ('' === $this->name) {
return null; return null;
} }