DEV: add plugin hooks for silence message parameters (PR #10538)

Allows plugins to add, and update extra silence message params for custom i18n vars

GitHub

Why do you need the splat operator here?

Ruby 2.7.1 deferred this (no longer warns), but there was previous a bunch of warnings in 2.7.0 about how passing an options hash as a variable (and having it auto-convert to keyword args) was deprecated: https://blog.bigbinary.com/2020/04/14/ruby-2-7-deprecates-conversion-of-keyword-arguments.html

The splat operator makes that conversion explicit.

1 Like

Wait, you’re right, there’s no reason for it - I was misreading the function definition, and thought the args hash argument was a keyword hash.

Let’s add a test for this param as well to demonstrate the intended usage :slight_smile:

Oh right sorry aobut that - just added!