Skip to content

Commit 43af623

Browse files
committed
PhpNamespace: name can be NULL
1 parent 2d2b973 commit 43af623

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PhpGenerator/PhpNamespace.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct($name = NULL)
4242

4343

4444
/**
45-
* @param string
45+
* @param string|NULL
4646
* @return self
4747
*/
4848
public function setName($name)
@@ -53,11 +53,11 @@ public function setName($name)
5353

5454

5555
/**
56-
* @return string
56+
* @return string|NULL
5757
*/
5858
public function getName()
5959
{
60-
return $this->name;
60+
return $this->name ?: NULL;
6161
}
6262

6363

0 commit comments

Comments
 (0)