Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation warnings on newest Elixir #138

Merged
merged 3 commits into from
Jul 8, 2023
Merged

Fix compilation warnings on newest Elixir #138

merged 3 commits into from
Jul 8, 2023

Conversation

crbelaus
Copy link
Contributor

@crbelaus crbelaus commented Jul 8, 2023

When compiling this project with Elixir 1.15 we get two warnings:

  1. use Mix.Config is deprecated. Use the Config module instead. Deprecated since Elixir 1.9
  2. Logger.warn/1 is deprecated. Use Logger.warning/2 instead. Deprecated since Elixir 1.15

This pull request fixes both deprecation warnings and bumps the minimum required Elixir version to 1.11 to ensure that the non-deprecated alternatives are supported. Otherwise we would have to use different code depending on the Elixir version.

Bumping the required Elixir version to 1.11 is a breaking change but was discussed in #137.

@josevalim josevalim merged commit 66e79fb into phoenixframework:main Jul 8, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants