Fix composer constraints
ID can be an object that implements __toString.