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:
parent
532aa9058b
commit
2df1f9d42e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user