diff options
author | Philipp Knechtges <philipp-dev@knechtges.com> | 2014-12-13 02:16:37 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-14 10:52:21 +0100 |
commit | 768aea57d3cef405ff1e01731fd31af5c997df99 (patch) | |
tree | 40ce155bbbb41b4faf9dd16fec54b6248e2ab891 /lib | |
parent | 6ae0217326ff458a1a06a6cbf656757afead1f31 (diff) | |
download | nextcloud-server-768aea57d3cef405ff1e01731fd31af5c997df99.tar.gz nextcloud-server-768aea57d3cef405ff1e01731fd31af5c997df99.zip |
make regex in controllermethodreflector.php compatible with PCRE 6.x
The syntax ?<...> seems to be only supported from PCRE 7.0 on. For
backwards-compability ?P<...> is used.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/utility/controllermethodreflector.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/utility/controllermethodreflector.php b/lib/private/appframework/utility/controllermethodreflector.php index c49dd80091e..8ad35ed35c2 100644 --- a/lib/private/appframework/utility/controllermethodreflector.php +++ b/lib/private/appframework/utility/controllermethodreflector.php @@ -54,7 +54,7 @@ class ControllerMethodReflector { $this->annotations = $matches[1]; // extract type parameter information - preg_match_all('/@param (?<type>\w+) \$(?<var>\w+)/', $docs, $matches); + preg_match_all('/@param (?P<type>\w+) \$(?P<var>\w+)/', $docs, $matches); // this is just a fix for PHP 5.3 (array_combine raises warning if called with // two empty arrays if($matches['var'] === array() && $matches['type'] === array()) { |