Fix parameter name boundary in regex

This commit is contained in:
Mario Franco 2013-04-16 16:16:30 +01:00
parent 629ee251da
commit 32840bfe75

View File

@ -322,7 +322,7 @@ class ApiDocExtractor
}
}
$regexp = '{(\w*) *\$%s *(.*)}i';
$regexp = '{(\w*) *\$%s\b *(.*)}i';
foreach ($route->compile()->getVariables() as $var) {
$found = false;
foreach ($paramDocs as $paramDoc) {