Skip to content

Commit eef9df8

Browse files
committed
typos
1 parent 5501c46 commit eef9df8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static function from($from)
9090
}
9191

9292

93-
public function __construct($name = NULL, PhpNamespace $namespace = NULL)
93+
public function __construct($name = '', PhpNamespace $namespace = NULL)
9494
{
9595
$this->setName($name);
9696
$this->namespace = $namespace;
@@ -141,7 +141,7 @@ public function __toString()
141141

142142

143143
/**
144-
* @return PhpNamespace
144+
* @return PhpNamespace|NULL
145145
*/
146146
public function getNamespace()
147147
{

src/PhpGenerator/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public function setVisibility($val)
287287

288288

289289
/**
290-
* @return string
290+
* @return string|NULL
291291
*/
292292
public function getVisibility()
293293
{

src/PhpGenerator/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class Parameter extends Nette\Object
1717
{
1818
/** @var string */
19-
private $name;
19+
private $name = '';
2020

2121
/** @var bool */
2222
private $reference = FALSE;

src/PhpGenerator/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class Property extends Nette\Object
1717
{
1818
/** @var string */
19-
private $name;
19+
private $name = '';
2020

2121
/** @var mixed */
2222
public $value;

0 commit comments

Comments
 (0)