File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,9 @@ public function getBody()
107
107
* @param bool
108
108
* @return static
109
109
*/
110
- public function setStatic ($ val )
110
+ public function setStatic ($ state = TRUE )
111
111
{
112
- $ this ->static = (bool ) $ val ;
112
+ $ this ->static = (bool ) $ state ;
113
113
return $ this ;
114
114
}
115
115
@@ -127,9 +127,9 @@ public function isStatic()
127
127
* @param bool
128
128
* @return static
129
129
*/
130
- public function setFinal ($ val )
130
+ public function setFinal ($ state = TRUE )
131
131
{
132
- $ this ->final = (bool ) $ val ;
132
+ $ this ->final = (bool ) $ state ;
133
133
return $ this ;
134
134
}
135
135
@@ -147,9 +147,9 @@ public function isFinal()
147
147
* @param bool
148
148
* @return static
149
149
*/
150
- public function setAbstract ($ val )
150
+ public function setAbstract ($ state = TRUE )
151
151
{
152
- $ this ->abstract = (bool ) $ val ;
152
+ $ this ->abstract = (bool ) $ state ;
153
153
return $ this ;
154
154
}
155
155
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ trait FunctionLike
34
34
private $ returnReference = FALSE ;
35
35
36
36
/** @var bool */
37
- private $ returnNullable ;
37
+ private $ returnNullable = FALSE ;
38
38
39
39
/** @var PhpNamespace|NULL */
40
40
private $ namespace ;
@@ -115,9 +115,9 @@ public function addParameter($name, $defaultValue = NULL)
115
115
* @param bool
116
116
* @return static
117
117
*/
118
- public function setVariadic ($ val )
118
+ public function setVariadic ($ state = TRUE )
119
119
{
120
- $ this ->variadic = (bool ) $ val ;
120
+ $ this ->variadic = (bool ) $ state ;
121
121
return $ this ;
122
122
}
123
123
@@ -155,9 +155,9 @@ public function getReturnType()
155
155
* @param bool
156
156
* @return static
157
157
*/
158
- public function setReturnReference ($ val )
158
+ public function setReturnReference ($ state = TRUE )
159
159
{
160
- $ this ->returnReference = (bool ) $ val ;
160
+ $ this ->returnReference = (bool ) $ state ;
161
161
return $ this ;
162
162
}
163
163
@@ -175,9 +175,9 @@ public function getReturnReference()
175
175
* @param bool
176
176
* @return static
177
177
*/
178
- public function setReturnNullable ($ val )
178
+ public function setReturnNullable ($ state = TRUE )
179
179
{
180
- $ this ->returnNullable = (bool ) $ val ;
180
+ $ this ->returnNullable = (bool ) $ state ;
181
181
return $ this ;
182
182
}
183
183
You can’t perform that action at this time.
0 commit comments