From f1d96c546768e478a4db5e1ae95394e872031642 Mon Sep 17 00:00:00 2001 From: Bart de Water <496367+bdewater@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:07:22 -0400 Subject: [PATCH] Add ErrorReporter unexpected method --- rbi/annotations/activesupport.rbi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rbi/annotations/activesupport.rbi b/rbi/annotations/activesupport.rbi index 67871b7..7bd6330 100644 --- a/rbi/annotations/activesupport.rbi +++ b/rbi/annotations/activesupport.rbi @@ -493,4 +493,15 @@ class ActiveSupport::ErrorReporter ).void end def report(error, handled: true, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end + + # @version >= 7.2.0.beta1 + sig do + params( + error: T.any(Exception, String), + severity: T.nilable(Symbol), + context: T::Hash[Symbol, T.untyped], + source: T.nilable(String), + ).void + end + def unexpected(error, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end end