Retirement tax questions

Hi 

 

cash basis company . Payroll check written to employee and mailed on 12/27/21. Check was not deposited until 1/6/22. What is the 2021 journal entry to record this expense? I thought no accounts payable allowed when cash basis