Merge pull request #16157 from Bo98/odisabled-kwargs

extend/kernel: fix `odisabled` kwargs handling
This commit is contained in:
Bo Anderson 2023-10-28 18:02:48 +01:00 committed by GitHub
commit 5003072f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,10 +155,10 @@ module Kernel
end
end
def odisabled(method, replacement = nil, options = {})
def odisabled(method, replacement = nil, **options)
options = { disable: true, caller: caller }.merge(options)
# This odeprecated should stick around indefinitely.
odeprecated(method, replacement, options)
odeprecated(method, replacement, **options)
end
def pretty_installed(formula)