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 5dddff9 commit 83f7679Copy full SHA for 83f7679
src/PhpGenerator/PhpNamespace.php
@@ -37,12 +37,12 @@ class PhpNamespace extends Object
37
38
public function __construct($name = NULL)
39
{
40
- $this->setName((string) $name);
+ $this->setName($name);
41
}
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