checkBenevolentUnionTypes
+ @template TKey of array-key
= false positive
#9766
Labels
Milestone
checkBenevolentUnionTypes
+ @template TKey of array-key
= false positive
#9766
Bug report
I'm trying to enable
checkBenevolentUnionTypes
(as recomended in #9750), but seems I found something stange :)PHPStan will report that:
With
@template TKey of string|int
there are no errors.Code snippet that reproduces the problem
https://phpstan.org/r/3a30aea2-ea44-4546-8774-3a9589abe496
Expected output
Probably no error?
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: