From d184ff75721cdcb24dcad55f97e5114a54bacda8 Mon Sep 17 00:00:00 2001 From: Brad Hanks Date: Thu, 11 Jan 2024 11:28:20 -0700 Subject: [PATCH] warning: using map.field notation (without parentheses) to invoke function Phoenix.Digester.Gzip.file_extensions() is deprecated, you must add parentheses instead: remote.function() (#5693) --- lib/phoenix/digester.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix/digester.ex b/lib/phoenix/digester.ex index 26a93210d7..69b1b4fa84 100644 --- a/lib/phoenix/digester.ex +++ b/lib/phoenix/digester.ex @@ -194,7 +194,7 @@ defmodule Phoenix.Digester do compressors = Application.fetch_env!(:phoenix, :static_compressors) Enum.each(compressors, fn compressor -> - [file_extension | _] = compressor.file_extensions + [file_extension | _] = compressor.file_extensions() compressed_digested_result = compressor.compress_file(file.digested_filename, file.digested_content)