Browse Source

Fix the regex for annotations with values

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v12.0.0beta1
Joas Schilling 7 years ago
parent
commit
29a0a23918
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/AppFramework/Utility/ControllerMethodReflector.php

+ 1
- 1
lib/private/AppFramework/Utility/ControllerMethodReflector.php View File

@@ -55,7 +55,7 @@ class ControllerMethodReflector implements IControllerMethodReflector{
$docs = $reflection->getDocComment();

// extract everything prefixed by @ and first letter uppercase
preg_match_all('/@([A-Z]\w+)/', $docs, $matches);
preg_match_all('/^\h+\*\h+@(?P<annotation>[A-Z]\w+)(\h+(?P<parameter>\w+))?$/m', $docs, $matches);
$this->annotations = $matches[1];

// extract type parameter information

Loading…
Cancel
Save