HARRISBURG, Pa. (AP) — Democratic Gov. Tom Wolf is vetoing legislation that would have restricted the situations in which police officers are identified after firing their weapon or using force that results in death or serious injury.

Wolf rejected the legislation Monday, after it passed both the Republican-controlled House and Senate by veto-proof majorities last month.

READ MORE: Philadelphia Activists Accuse 'Overzealous' Police Of Violently Disrupting Protest Outside Mayor Jim Kenney's Home In July

Phila. Officials Frown On Bill Awaiting Gov. Wolf’s Signature

In his veto message, Wolf says the law would have withheld important information from the public. He says he’s deeply concerned for the safety of police officers, but that police departments are best equipped to decide what information is appropriate to release to the public.

READ MORE: Upper Merion School District: Teachers, Staff Must Be Vaccinated Against COVID-19 Or Routinely Get Tested

The bill mandated the release of the officer’s name if he or she was charged with a crime. But the officer’s name could’ve been withheld if an investigation didn’t produce charges.

Bill To Restrict Identifying Police Involved In Shootings Goes To Gov. Wolf

MORE NEWS: COVID In PA: No New Restrictions In Philadelphia As COVID-19 Cases Rising, But 'Nothing Is Off The Table'

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)