fixing php compatibilty issue on version constraint