Skip to content

Commit 2906e42

Browse files
authored
Refactoring of getGetterReturnType method
- \Zend\Code\Reflection\DocBlock\Tag\ReturnTag::getType is deprecated since 2.0.4 - array mark ('[]') is returned in the type name - '|null' is the item in the types array
1 parent aaf2059 commit 2906e42

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
@@ -309,7 +309,7 @@ public function getGetterReturnType($methodReflection)
309309
}
310310
/** @var \Zend\Code\Reflection\DocBlock\Tag\ReturnTag $returnAnnotation */
311311
$returnAnnotation = current($returnAnnotations);
312-
$returnType = $returnAnnotation->getType();
312+
// $returnType = $returnAnnotation->getType();
313313
/*
314314
* Adding this code as a workaround since \Zend\Code\Reflection\DocBlock\Tag\ReturnTag::initialize does not
315315
* detect and return correct type for array of objects in annotation.

0 commit comments

Comments
 (0)