Bruce Weirdan
Bruce Weirdan
That's because $v is undefined (=mixed). Fix that and you'll get `TypeDoesNotContainType` (=paradox): https://psalm.dev/r/55695988d8
Overall, I don't see any bugs here. cc: @AndrolGenhald
This is partially fixed by #9286. All traces produce expected results, but TypeDoesNotContainType is still there.
`TypeDoesNotContainType` is no longer reported, and results match those of PHPStan
https://psalm.dev/r/8bc8c90173
Normally you would do it like this: https://psalm.dev/r/8d9ef2c87f But Psalm doesn't seem to read taint taints on `offsetGet()` when you access it via `[]` operator. For reference, the following should...
> Is there any way to make Psalm detect the taint in this case? Not yet, thus the `enhancement` label
Why allow comparing resources though?
I don't think constants are supported in callmaps.
You can put constant values there.