sorbet-runtime 0.5.9694 → 0.5.9719

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70c9d77dab63803e31d3c165b8b6c83e8776a961415aea163d15b9171989d9c6
4
- data.tar.gz: af967b0888c324ccef85dd103d4179d0a9cffcab50870814a61016496b9406d6
3
+ metadata.gz: e73382eafffda9651c27161bcb57cb1ed32a53d4d34ca1d7bef56fa97d10c7c7
4
+ data.tar.gz: 7df7b30ab2853e7a5801b5f8848a363b19fc83c690e8056d26a34b7ca81ad821
5
5
  SHA512:
6
- metadata.gz: 0ef310a1cc20036a3db4bb5fac7855ed7074cbf8ec904160c930c764df99376a2a8008f2471866def4c3da706b2eeb45b3f96cc9b85162527e44ecb2be95fab0
7
- data.tar.gz: 923adf839267cbc4583622ba803bd90cd69a5b100f6299c92802b0bc045d915e50d1d016ee580dd7b1f743771a1c4bec21a683a73bd9af5257db7b1c58286ea2
6
+ metadata.gz: c1e9be70f3d382eacfe8e2c156b5760c0f6f3eafac66357db14f104d632fc7ae0b4ae73f5e41382a719880389a533c8c0251261c8fe0ac8a6d995de69fd4d3e8
7
+ data.tar.gz: 10b76469a84837b006cfe80eb3a35596216245f3421199ec9bcdafbd6f0f5e36a95c1ade1657415c0d6c3ea6962832b8ed161ebb683b4e921c881311b04fc6a3
@@ -103,6 +103,12 @@ class T::Private::Methods::Signature
103
103
  if @arg_types.length > @req_arg_count
104
104
  # Note that this is actually is supported by Ruby, but it would add complexity to
105
105
  # support it here, and I'm happy to discourage its use anyway.
106
+ #
107
+ # If you are seeing this error and surprised by it, it's possible that you have
108
+ # overridden the method described in the error message. For example, Rails defines
109
+ # def self.update!(id = :all, attributes)
110
+ # on AR models. If you have also defined `self.update!` on an AR model you might
111
+ # see this error. The simplest resolution is to rename your method.
106
112
  raise "Required params after optional params are not supported in method declarations. Method: #{method_desc}"
107
113
  end
108
114
  @arg_types << [param_name, type]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9694
4
+ version: 0.5.9719
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-26 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest