File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function isReference(): bool
59
59
*/
60
60
public function setTypeHint (?string $ hint ): self
61
61
{
62
- $ this ->typeHint = $ hint ? ( string ) $ hint : null ;
62
+ $ this ->typeHint = $ hint ;
63
63
return $ this ;
64
64
}
65
65
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ trait CommentAware
24
24
*/
25
25
public function setComment (?string $ val ): self
26
26
{
27
- $ this ->comment = $ val ? ( string ) $ val : null ;
27
+ $ this ->comment = $ val ;
28
28
return $ this ;
29
29
}
30
30
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public function isVariadic(): bool
128
128
*/
129
129
public function setReturnType (?string $ val ): self
130
130
{
131
- $ this ->returnType = $ val ? ( string ) $ val : null ;
131
+ $ this ->returnType = $ val ;
132
132
return $ this ;
133
133
}
134
134
You can’t perform that action at this time.
0 commit comments