Skip to content

Commit d9cf2ae

Browse files
ENGCOM-1998: FIX for apparently random API failures while using array types #16137
- Merge Pull Request #16137 from phoenix128/magento2:issue-webapi-with-cr-lf-failing - Merged commits: 1. 4205403
2 parents 2910d8b + 4205403 commit d9cf2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Reflection/TypeProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public function getParamType(ParameterReflection $param)
523523
if ($type == 'array') {
524524
// try to determine class, if it's array of objects
525525
$docBlock = $param->getDeclaringFunction()->getDocBlock();
526-
$pattern = "/\@param\s+([\w\\\_]+\[\])\s+\\\${$param->getName()}\n/";
526+
$pattern = "/\@param\s+([\w\\\_]+\[\])\s+\\\${$param->getName()}[\n\r]/";
527527
$matches = [];
528528
if (preg_match($pattern, $docBlock->getContents(), $matches)) {
529529
return $matches[1];

0 commit comments

Comments
 (0)