replace l4 php constraints