Open ohader opened 2 years ago
I found these snippets:
This is how it looks using @psalm-taint-specialize
(but still, it's not feasible to adjust and manipulate each class in a particular project).
https://psalm.dev/r/a3bf6ed8c6
I found these snippets:
And this is how it would look like in framework-land, having builder, factories, facades triggering object instantiation. It seems all invocations have to use @psalm-taint-specialize
.
I found these snippets:
PoC: https://psalm.dev/r/49e01bb19a
value
is filled via constructornew
@psalm-taint-specialize
toclass Other {}
declaration would solve the problemnew
instances - in general