From eae95c4e494558a9985b800c83b7bc1350021b4c Mon Sep 17 00:00:00 2001 From: Valentin Date: Sat, 13 Jul 2019 00:04:51 +0300 Subject: [PATCH] PHPDoc fixes --- src/Symfony/Component/Form/Form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 3e8d632d93..63ef109e67 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -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; }