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 Police Officer Has Strong Message For Son's Killers After Hyram Hill Killed In Targeted Shooting

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: Manor College Students Past, Present 'Very Angry And Frustrated' About Ukraine-Russia Tensions

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: Philadelphia Police Officer Injured After Being Dragged By Vehicle During Traffic Stop: Police

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