Skip to content

Commit

Permalink
ENGCOM-1998: FIX for apparently random API failures while using array…
Browse files Browse the repository at this point in the history
… types #16137
  • Loading branch information
Stanislav Idolov authored Jun 19, 2018
2 parents 8b87881 + d9cf2ae commit 8015ecb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,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 8015ecb

Please sign in to comment.