Notwithstanding any law to the contrary, no person shall contest the certification of any person to fill any vacancy by a police civil service commission in a city, except a city of the first class, later than six years after the date of certification.