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:
parent
b1f7cfb08e
commit
8e7ab59e2b
@ -500,6 +500,12 @@ class ExpressionChecker
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
$stmt->inferredType = new Type\Union([
|
||||||
|
new Type\Atomic\TArray([
|
||||||
|
Type::getMixed(),
|
||||||
|
Type::getString(),
|
||||||
|
])
|
||||||
|
]);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user