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 43b8dd6 commit 239ce42Copy full SHA for 239ce42
lib/internal/Magento/Framework/Interception/Code/Generator/Interceptor.php
@@ -212,7 +212,7 @@ private function getReturnTypeValue(\ReflectionMethod $method): ?string
212
$returnTypeValue = null;
213
$returnType = $method->getReturnType();
214
if ($returnType) {
215
- $returnTypeValue = ($returnType->allowsNull() ? '?' : '');
+ $returnTypeValue = ($returnType->allowsNull() && $returnType->getName() !== 'mixed' ? '?' : '');
216
$returnTypeValue .= ($returnType->getName() === 'self')
217
? $this->_getFullyQualifiedClassName($method->getDeclaringClass()->getName())
218
: $returnType->getName();
0 commit comments