detect annotations before blank docblock lines
This commit is contained in:
parent
df1d50dcc2
commit
dedd526b19
|
@ -233,7 +233,7 @@ class DebugClassLoader
|
|||
// Detect annotations on the class
|
||||
if (false !== $doc = $refl->getDocComment()) {
|
||||
foreach (['final', 'deprecated', 'internal'] as $annotation) {
|
||||
if (false !== \strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$)#s', $doc, $notice)) {
|
||||
if (false !== \strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$|\r?\n)#s', $doc, $notice)) {
|
||||
self::${$annotation}[$class] = isset($notice[1]) ? preg_replace('#\.?\r?\n( \*)? *(?= |\r?\n|$)#', '', $notice[1]) : '';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,6 @@ class FinalClass6
|
|||
* @author John Doe
|
||||
*
|
||||
* @final another
|
||||
*
|
||||
* multiline comment...
|
||||
*
|
||||
* @return string
|
||||
|
|
Reference in New Issue