Skip to content

Commit

Permalink
fix map.field notation warning on Elixir 1.17
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 committed Mar 19, 2024
1 parent eb80820 commit 7491bef
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 7491bef

Please sign in to comment.