8000 [Form] Name related PHPDoc fixes by vudaltsov · Pull Request #32400 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Name related PHPDoc fixes #32400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PHPDoc fixes
  • Loading branch information
vudaltsov committed Jul 12, 2019
commit eae95c4e494558a9985b800c83b7bc1350021b4c
6 changes: 3 additions & 3 deletions src/Symfony/Component/Form/Form.php
8000
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -211,7 +211,7 @@ public function getPropertyPath()
return $this->propertyPath;
}

if (null === $this->name || '' === $this->name) {
if ('' === $this->name) {
return null;
}

Expand Down
0