Given a variable whose return type is only null if on the null-safe call $object?->bar() the object was actually null, a subsequent null-safe call to the given object will not be evaluated at all, allowing to ignore that given variable if it was passed as parameter.
Given a variable whose return type is only null if on the null-safe call
$object?->bar()
the object was actually null, a subsequent null-safe call to the given object will not be evaluated at all, allowing to ignore that given variable if it was passed as parameter.https://psalm.dev/r/54cc95bce8