Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eae95c4

Browse filesBrowse files
committed
PHPDoc fixes
1 parent ddaf1be commit eae95c4
Copy full SHA for eae95c4

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Form/Form.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Form.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ class Form implements \IteratorAggregate, FormInterface
140140
private $lockSetData = false;
141141

142142
/**
143-
* @var string|int|null
143+
* @var string
144144
*/
145-
private $name;
145+
private $name = '';
146146

147147
/**
148148
* @var bool Whether the form inherits its underlying data from its parent
@@ -211,7 +211,7 @@ public function getPropertyPath()
211211
return $this->propertyPath;
212212
}
213213

214-
if (null === $this->name || '' === $this->name) {
214+
if ('' === $this->name) {
215215
return null;
216216
}
217217

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.