diff --git a/Library/Homebrew/test/utils/analytics_spec.rb b/Library/Homebrew/test/utils/analytics_spec.rb index 4428b1423a..c221af0d6f 100644 --- a/Library/Homebrew/test/utils/analytics_spec.rb +++ b/Library/Homebrew/test/utils/analytics_spec.rb @@ -184,7 +184,7 @@ RSpec.describe Utils::Analytics do end specify "::table_output" do - results = { ack: 10, wget: 100 } + results = { "ack" => 10, "wget" => 100 } expect { described_class.table_output("install", "30", results) } .to output(/110 | 100.00%/).to_stdout .and not_to_output.to_stderr diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index d9136a168c..2ac747df12 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -360,7 +360,7 @@ module Utils nil end - sig { returns(T::Hash[Symbol, String]) } + sig { returns(T::Hash[Symbol, T.any(T::Boolean, String)]) } def default_package_tags cache[:default_package_tags] ||= begin # Only display default prefixes to reduce cardinality and improve privacy