We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b1e47 commit 4205403Copy full SHA for 4205403
lib/internal/Magento/Framework/Reflection/TypeProcessor.php
@@ -523,7 +523,7 @@ public function getParamType(ParameterReflection $param)
523
if ($type == 'array') {
524
// try to determine class, if it's array of objects
525
$docBlock = $param->getDeclaringFunction()->getDocBlock();
526
- $pattern = "/\@param\s+([\w\\\_]+\[\])\s+\\\${$param->getName()}\n/";
+ $pattern = "/\@param\s+([\w\\\_]+\[\])\s+\\\${$param->getName()}[\n\r]/";
527
$matches = [];
528
if (preg_match($pattern, $docBlock->getContents(), $matches)) {
529
return $matches[1];
0 commit comments