diff --git a/lib/parser/source/tree_rewriter.rb b/lib/parser/source/tree_rewriter.rb index 85d950052..97268668d 100644 --- a/lib/parser/source/tree_rewriter.rb +++ b/lib/parser/source/tree_rewriter.rb @@ -281,7 +281,7 @@ def check_range_validity(range) def enforce_policy(event) return if @policy[event] == :accept return unless (values = yield) - trigger_policy(event, values) + trigger_policy(event, **values) end POLICY_TO_LEVEL = {warn: :warning, raise: :error}.freeze