Fox News host and former Arkansas Gov. Mike Huckabee on Thursday spoke out against a California law that prohibits mental health professionals from attempting to change the sexual orientation of minors.

Speaking with Mat Staver of Liberty Counsel, who filed a lawsuit against the law, Huckabee questioned whether a young gay man who “decided” to be heterosexual could receive therapy.

“I mean this really is the courts stepping in and telling the clinical practitioner the limits of his or her practice to a level that would seem unprecedented,” he said. “Mat, let me pose a question, let’s say a young person comes in and says, ‘you know I’ve always believed I’m homosexual, believed that since I was seven-years-old, but now that I’m seventeen, I’ve decided that I’m not, I’m heterosexual’ and goes to a pro-homosexual counselor. Would that person be at risk? It looks like some of those folks would be nervous that they couldn’t say, ‘oh no, no you are homosexual all right because you thought that when you were seven and therefore you have to stay that way.’”

Last year, the California legislature approved legislation to prohibit those under 18 from being subjected to so-called ex-gay or reparative therapy.

California Assembly Speaker John A. Perez (D-Los Angeles) described reparative therapy as an “abusive practice in the guise of therapy,” while California Gov. Jerry Brown (D) called reparative therapy “quackery.”