fix: minor prior auth bugs and some php8 warns in graphs (#6153)