Skip to content

Commit 422f73c

Browse files
committed
magento#31345 A better fix for ArgumentsReader::processType
1 parent 1afe9b0 commit 422f73c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Code/Reader/ArgumentsReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ private function processType(\ReflectionClass $class, \Laminas\Code\Reflection\P
100100
{
101101
$type = $parameter->detectType();
102102

103-
if ($type === 'array') {
104-
return 'array';
103+
if (in_array($type, $this->scalarTypesProvider->getTypes())) {
104+
return $type;
105105
}
106106

107107
if ($parameter->getClass()) {

0 commit comments

Comments
 (0)