1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 01:37:23 +01:00

add resource to truthy types

This commit is contained in:
orklah 2021-09-22 22:08:32 +02:00
parent 532aa9058b
commit 2df1f9d42e

View File

@ -1069,6 +1069,10 @@ class Union implements TypeNode
continue;
}
if ($atomic_type instanceof Type\Atomic\TResource) {
continue;
}
if ($atomic_type instanceof Type\Atomic\TKeyedArray) {
foreach ($atomic_type->properties as $property) {
if ($property->possibly_undefined === false) {