There are lots of discussion about broken arc, like this: Arcanist deprecation errors on PHP 8
I usually just run whatever the command failed with --trace
option, see the stack dump, see where the null check is needed and set the null to something sensible, like empty string, or early return, etc.