1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add return types for core vars

This commit is contained in:
Matthew Brown 2017-02-12 12:22:39 -05:00
parent b1f7cfb08e
commit 8e7ab59e2b

View File

@ -500,6 +500,12 @@ class ExpressionChecker
] ]
) )
) { ) {
$stmt->inferredType = new Type\Union([
new Type\Atomic\TArray([
Type::getMixed(),
Type::getString(),
])
]);
return null; return null;
} }