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 8e8efbb commit 1f61df8Copy full SHA for 1f61df8
lib/internal/Magento/Framework/Async/Code/Generator/ProxyDeferredGenerator.php
@@ -246,7 +246,7 @@ private function getReturnTypeValue(\ReflectionMethod $method): ?string
246
$returnTypeValue = null;
247
$returnType = $method->getReturnType();
248
if ($returnType) {
249
- $returnTypeValue = ($returnType->allowsNull() ? '?' : '');
+ $returnTypeValue = ($returnType->allowsNull() && $returnType->getName() !== 'mixed' ? '?' : '');
250
$returnTypeValue .= ($returnType->getName() === 'self')
251
? $this->_getFullyQualifiedClassName($method->getDeclaringClass()->getName())
252
: $returnType->getName();
0 commit comments