The attornment of a tenant to any stranger is void, unless it is with the consent of the landlord of such tenant or pursuant to or in consequence of the judgment or order of a court.
Code 1919, § 5515; Code 1950, § 55-221; 2019, c. 712.