Avoidance of the Lavrentiev gap for one-dimensional non-autonomous functionals with constraints | Synapse