Skip to content

Commit

Permalink
Fix map.field notation warning on Elixir 1.17 (#174)
Browse files Browse the repository at this point in the history
```
warning: using map.field notation (without parentheses) to invoke function MyStruct.__struct__() is deprecated, you must add parentheses instead: remote.function()
  (phoenix_ecto 4.5.1) lib/phoenix_ecto/html.ex:53: Phoenix.HTML.FormData.Ecto.Changeset.to_form/4
```
  • Loading branch information
SteffenDE authored Mar 19, 2024
1 parent eb80820 commit 3bdb207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_ecto/html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if Code.ensure_loaded?(Phoenix.HTML) do
[validate_map!(map, field)]

_ ->
[validate_map!(assoc_from_data(source.data, field), field) || module.__struct__]
[validate_map!(assoc_from_data(source.data, field), field) || module.__struct__()]
end

for changeset <- skip_replaced(changesets) do
Expand Down

0 comments on commit 3bdb207

Please sign in to comment.