New Jersey Gov. Phil Murphy signed legislation that bars anyone under the age of 18 from getting married, ruling out marriages previously allowed in cases of parental consent.

New Jersey has now become the second state, after Delaware, to enact such legislation. Delaware Gov. John Carney signed a similar bill into law last month.