See Arcanist deprecation errors on PHP 8
Something surprising maybe is that your error message indicates issues with code in /usr/share/arcanist/src/...
; while in general we install from git in $home to get the latest. Did you install it with apt
(or similar package manager)? I’d try to get the latest from source instead.