On a generalisation of Birkhoff's theorem