Skip to content
Snippets Groups Projects
Commit 768aea57 authored by Philipp Knechtges's avatar Philipp Knechtges Committed by Morris Jobke
Browse files

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.
parent 6ae02173
Branches
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment