File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -589,13 +589,13 @@ protected function generateClassPropertyDocs($fileName)
589
589
return false ;
590
590
}
591
591
if (count ($ classes ) < 1 ) {
592
- $ interfaces = $ this ->match ('#\ninterface (?<name>\w+)( extends .+)?\n\{(?<content>.+ )\n\}(\n|$)# ' , $ file );
592
+ $ interfaces = $ this ->match ('#\ninterface (?<name>\w+)( extends .+)?\n\{(?<content>.* )\n\}(\n|$)# ' , $ file );
593
593
if (count ($ interfaces ) == 1 ) {
594
594
return false ;
595
595
} elseif (count ($ interfaces ) > 1 ) {
596
596
$ this ->stderr ("[ERR] There should be only one interface in a file: $ fileName \n" , Console::FG_RED );
597
597
} else {
598
- $ traits = $ this ->match ('#\ntrait (?<name>\w+)\n\{(?<content>.+ )\n\}(\n|$)# ' , $ file );
598
+ $ traits = $ this ->match ('#\ntrait (?<name>\w+)\n\{(?<content>.* )\n\}(\n|$)# ' , $ file );
599
599
if (count ($ traits ) == 1 ) {
600
600
return false ;
601
601
} elseif (count ($ traits ) > 1 ) {
You can’t perform that action at this time.
0 commit comments