Sorting of @psalm-return
intersection type may lead to detecting mixed
instead of correct type
#1677
Labels
@psalm-return
intersection type may lead to detecting mixed
instead of correct type
#1677
I am very sorry for reporting this one without a shorter reproduce scenario, but it seems to be a combination of sorting, inheritance priority, and class detection. I'll try putting the relevant code in here, but the issue is extracted from following code: Ocramius/ProxyManager@5357b03
https://psalm.dev/r/8a169678e8
$wrappedValue
seems to be inferred tomixed
when using this code, while using the second@disabled-psalm-return
, it infersMyProxiedClass
:The text was updated successfully, but these errors were encountered: