conditionally update composer by switching php version