File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/voku/SimplePhpParser/Parsers Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,9 @@ private static function mergeInheritdocData(
389389 ) {
390390 $ reflectionClassTmp = ReflectionClass::createFromName ($ class ->parentClass );
391391 $ classTmp = (new \voku \SimplePhpParser \Model \PHPClass ($ parserContainer ))->readObjectFromBetterReflection ($ reflectionClassTmp );
392- $ classes [$ classTmp ->name ] = $ classTmp ;
392+ if ($ classTmp ->name ) {
393+ $ classes [$ classTmp ->name ] = $ classTmp ;
394+ }
393395 }
394396
395397 if (!isset ($ classes [$ class ->parentClass ])) {
@@ -433,7 +435,9 @@ private static function mergeInheritdocData(
433435 ) {
434436 $ reflectionInterfaceTmp = ReflectionClass::createFromName ($ interfaceStr );
435437 $ interfaceTmp = (new PHPInterface ($ parserContainer ))->readObjectFromBetterReflection ($ reflectionInterfaceTmp );
436- $ interfaces [$ interfaceTmp ->name ] = $ interfaceTmp ;
438+ if ($ interfaceTmp ->name ) {
439+ $ interfaces [$ interfaceTmp ->name ] = $ interfaceTmp ;
440+ }
437441 }
438442
439443 if (!isset ($ interfaces [$ interfaceStr ])) {
You can’t perform that action at this time.
0 commit comments