File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ private function processClass(Node\Stmt\Class_ $node)
102102 // Get class docblock
103103 $ docComment = $ node ->getDocComment ();
104104 $ docString = $ docComment ? $ docComment ->getText () : '' ;
105- $ docStartLine = $ docComment ? $ docComment ->getStartLine () : $ classStartLine ;
106- $ docEndLine = $ docComment ? $ docComment ->getEndLine () : $ classStartLine ;
105+ $ docStartLine = $ docComment ? $ docComment ->getStartLine () : - 1 ;
106+ $ docEndLine = $ docComment ? $ docComment ->getEndLine () : - 1 ;
107107
108108 // Get class content
109109 $ classContent = $ this ->extractNodeContent ($ node );
@@ -158,8 +158,8 @@ private function extractMethodData(Node\FunctionLike $node)
158158 // Get method docblock
159159 $ docComment = $ node ->getDocComment ();
160160 $ docString = $ docComment ? $ docComment ->getText () : '' ;
161- $ docStartLine = $ docComment ? $ docComment ->getStartLine () : $ startLine ;
162- $ docEndLine = $ docComment ? $ docComment ->getEndLine () : $ startLine ;
161+ $ docStartLine = $ docComment ? $ docComment ->getStartLine () : - 1 ;
162+ $ docEndLine = $ docComment ? $ docComment ->getEndLine () : - 1 ;
163163
164164 // Get method content and called functions
165165 $ methodContent = $ this ->extractNodeContent ($ node );
You can’t perform that action at this time.
0 commit comments