@@ -234,12 +234,15 @@ private function processMethod(NodeType\ClassMethod $node) {
234
234
$ visibility = 'protected ' ;
235
235
}
236
236
$ method ->setVisibility ($ visibility );
237
+
237
238
$ docComment = $ node ->getDocComment ();
238
239
if ($ docComment !== NULL ) {
239
240
$ block = $ this ->docBlockParser ->parse ($ docComment , $ this ->aliasMap );
240
241
$ method ->setDocBlock ($ block );
241
242
}
243
+
242
244
$ this ->processMethodParams ($ method , $ node ->params );
245
+
243
246
if ($ node ->stmts ) {
244
247
$ this ->processInlineComments ($ method , $ node ->stmts );
245
248
}
@@ -270,7 +273,6 @@ private function processMethodParams(MethodObject $method, array $params) {
270
273
$ this ->setVariableType ($ parameter , $ param ->type );
271
274
$ this ->setVariableDefaultValue ($ parameter , $ param ->default );
272
275
}
273
- //die();
274
276
}
275
277
276
278
private function processClassConstant (NodeType \ClassConst $ node ) {
@@ -295,8 +297,9 @@ private function processClassConstant(NodeType\ClassConst $node) {
295
297
private function processProperty (NodeType \Property $ node ) {
296
298
$ property = $ node ->props [0 ];
297
299
$ member = $ this ->unit ->addMember ($ property ->name );
298
- $ this ->setVariableType ($ member , $ node ->type );
299
- $ this ->setVariableDefaultValue ($ member , $ property ->default );
300
+ if ($ node ->props [0 ]->default ) {
301
+ $ this ->setVariableDefaultValue ($ member , $ node ->props [0 ]->default );
302
+ }
300
303
$ visibility = 'public ' ;
301
304
if ($ node ->isPrivate ()) {
302
305
$ visibility = 'private ' ;
0 commit comments