ID this quote? Voltaire, perhaps?

There’s an old joke, widely attributed to Voltaire but I doubt it: “Vagrancy laws are perfectly fair. They forbid rich and poor alike from sleeping under bridges.”

Can anyone give me a better source and translation?

Wikiquote says Anatole France.

Great, thanks!