Skip to content

Fix deprecated map.field call on Elixir 1.19 - #150

Merged
tfwright merged 1 commit into
mainfrom
fix/deprecated-map-field-call
Aug 2, 2026
Merged

Fix deprecated map.field call on Elixir 1.19#150
tfwright merged 1 commit into
mainfrom
fix/deprecated-map-field-call

Conversation

@tfwright

@tfwright tfwright commented Aug 1, 2026

Copy link
Copy Markdown
Owner

What

Adds parentheses to the __live_admin_config__ call in LiveAdmin.associated_resource/4.

Why

Invoking the generated __live_admin_config__/0 via map.field notation (resource.__live_admin_config__) is deprecated as of Elixir 1.19 and emits a warning at runtime; it will break in a future release. Making it an explicit function call (resource.__live_admin_config__()) resolves the deprecation.

Verification

  • mix do compile --warnings-as-errors + test — clean compile, 45 tests, 0 failures; the deprecation warning no longer appears in test output

🤖 Generated with Claude Code

Invoking the generated __live_admin_config__/0 via map.field
notation is deprecated as of Elixir 1.19 and will break in a
future release. Add the parentheses so it is an explicit
function call.
@tfwright
tfwright merged commit 24c779e into main Aug 2, 2026
6 checks passed
@tfwright
tfwright deleted the fix/deprecated-map-field-call branch August 2, 2026 08:04
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.

1 participant