Skip to content

Commit

Permalink
ENGCOM-2356: [Backport] FIX for apparently random API failures while …
Browse files Browse the repository at this point in the history
…using array types #16828
  • Loading branch information
Stanislav Idolov committed Jul 17, 2018
2 parents 22bc789 + b7e8ef5 commit a192f4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public function getParamType(ParameterReflection $param)
if ($type == 'array') {
// try to determine class, if it's array of objects
$docBlock = $param->getDeclaringFunction()->getDocBlock();
$pattern = "/\@param\s+([\w\\\_]+\[\])\s+\\\${$param->getName()}\n/";
$pattern = "/\@param\s+([\w\\\_]+\[\])\s+\\\${$param->getName()}[\n\r]/";
$matches = [];
if (preg_match($pattern, $docBlock->getContents(), $matches)) {
return $matches[1];
Expand Down

0 comments on commit a192f4e

Please sign in to comment.