return mixed if we failed detect castable type (#1306)

fixed #1305
This commit is contained in:
BinotaLIU
2022-01-24 21:39:17 +01:00
committed by GitHub
parent 771770e56c
commit 2673bf4889
5 changed files with 35 additions and 1 deletions
+2 -1
View File
@@ -1291,7 +1291,8 @@ class ModelsCommand extends Command
$methodReflection = $castReflection->getMethod('get');
return $this->getReturnTypeFromReflection($methodReflection) ??
$this->getReturnTypeFromDocBlock($methodReflection, $reflection);
$this->getReturnTypeFromDocBlock($methodReflection, $reflection) ??
'mixed';
}
/**