fix composer’s code snippet