diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7f7e4e03e52c1fee5b4c855a4aa17abfbfdc480a..f3cc3eb8a4c9dce0473759ffbc89bed98f683a77 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -2236,7 +2236,10 @@ class Formula
       if args.nil?
         @licenses
       else
-        args = { any_of: args } if args.is_a? Array
+        if args.is_a? Array
+          odeprecated "`license [...]`", "`license any_of: [...]`"
+          args = { any_of: args }
+        end
         @licenses = args
       end
     end