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 239ce42 commit 8e8efbbCopy full SHA for 8e8efbb
lib/internal/Magento/Framework/ObjectManager/Code/Generator/Proxy.php
@@ -287,7 +287,7 @@ private function getReturnTypeValue(\ReflectionMethod $method): ?string
287
$returnTypeValue = null;
288
$returnType = $method->getReturnType();
289
if ($returnType) {
290
- $returnTypeValue = ($returnType->allowsNull() ? '?' : '');
+ $returnTypeValue = ($returnType->allowsNull() && $returnType->getName() !== 'mixed' ? '?' : '');
291
$returnTypeValue .= ($returnType->getName() === 'self')
292
? $this->_getFullyQualifiedClassName($method->getDeclaringClass()->getName())
293
: $returnType->getName();
0 commit comments