Massachusetts Attorney General Maura Healey's office said Thursday she isn't taking the pay raise that comes as part of a package state lawmakers approved earlier in the day.

Lawmakers voted to override Gov. Charlie Baker's veto of the pay package, which hikes the compensation of high-ranking legislators, statewide elected officials, and judges. Baker called the proposal "fiscally irresponsible."

"The Attorney General's salary is set by the Legislature and the AG respects their authority," a Healey spokeswoman, Jillian Fennimore, said in an email. "However, she was opposed to this increase when it was first proposed two years ago, and will not accept the increase for the remainder of her term."

The law hikes the pay for attorney general to $175,000 a year, up from $130,582.

Healey won a four-year term in 2014.

Baker and Lt. Gov. Karyn Polito also aren't taking the pay increase and will reject any stipends that come with the new law. In a statement, Baker said he is "disappointed" with the Legislature's override due to the "current fiscal outlook for the state."