The nearby magnetic cool DZ white dwarf PM J08186−3110