Updating composer requirements to ~3.1 so it works with stable versions.