Currently custom taint types are plain strings like "anything" and wrapped in class generic TaintedCustom. To add more semantics and better taint graph handling, those types should be regular classes like AnythingTaint and optionally be "connected" to existing groups like TaintKindGroup::ALL_INPUT. In case no specific class is defined, it still falls back to current TaintedCustom behavior.
Currently custom taint types are plain strings like
"anything"
and wrapped in class genericTaintedCustom
. To add more semantics and better taint graph handling, those types should be regular classes likeAnythingTaint
and optionally be "connected" to existing groups likeTaintKindGroup::ALL_INPUT
. In case no specific class is defined, it still falls back to currentTaintedCustom
behavior.Example: https://psalm.dev/r/b0cf89613b