Government Code § 23006
CHAPTER 1. General
Any contract, authorization, allowance, payment, or liability to pay, made or attempted to be made in violation of law, is void, and shall not be the foundation or basis of a claim against the treasury of any county.