From 29a0a239183c9a2b8ab89b32b7ce5afde922159b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 17 Jan 2017 14:22:25 +0100 Subject: Fix the regex for annotations with values Signed-off-by: Joas Schilling --- lib/private/AppFramework/Utility/ControllerMethodReflector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/AppFramework/Utility') diff --git a/lib/private/AppFramework/Utility/ControllerMethodReflector.php b/lib/private/AppFramework/Utility/ControllerMethodReflector.php index 33a117d8121..9f653b0384e 100644 --- a/lib/private/AppFramework/Utility/ControllerMethodReflector.php +++ b/lib/private/AppFramework/Utility/ControllerMethodReflector.php @@ -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[A-Z]\w+)(\h+(?P\w+))?$/m', $docs, $matches); $this->annotations = $matches[1]; // extract type parameter information -- cgit v1.2.3