We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d2b973 commit 43af623Copy full SHA for 43af623
src/PhpGenerator/PhpNamespace.php
@@ -42,7 +42,7 @@ public function __construct($name = NULL)
42
43
44
/**
45
- * @param string
+ * @param string|NULL
46
* @return self
47
*/
48
public function setName($name)
@@ -53,11 +53,11 @@ public function setName($name)
53
54
55
56
- * @return string
+ * @return string|NULL
57
58
public function getName()
59
{
60
- return $this->name;
+ return $this->name ?: NULL;
61
}
62
63
0 commit comments