fix phpcs error "Missing @throws tag in function comment"