We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7313239 commit a73c782Copy full SHA for a73c782
src/EventHandler/Type/Shape/FunctionReturnTypeProvider.php
@@ -8,6 +8,8 @@
8
use Psalm\Plugin\EventHandler\FunctionReturnTypeProviderInterface;
9
use Psalm\Type;
10
11
+use function array_values;
12
+
13
final class FunctionReturnTypeProvider implements FunctionReturnTypeProviderInterface
14
{
15
/**
@@ -62,7 +64,7 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
62
64
63
65
$properties = [];
66
foreach ($argument_shape->properties as $name => $value) {
- $type = \array_values($value->getAtomicTypes())[0] ?? null;
67
+ $type = array_values($value->getAtomicTypes())[0] ?? null;
68
if (!$type instanceof Type\Atomic\TGenericObject) {
69
return null;
70
}
0 commit comments