Skip to content

Require the Sorbet version that started supporting T.anything#1302

Merged
st0012 merged 1 commit intomainfrom
require-newer-sorbet-runtime
Jan 12, 2024
Merged

Require the Sorbet version that started supporting T.anything#1302
st0012 merged 1 commit intomainfrom
require-newer-sorbet-runtime

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Jan 12, 2024

Motivation

Without this, projects using older Sorbet versions can hit NoMethodError when the T.anything signature is hit, as shown in #1300.

Closes #1300

Implementation

Bump the version requirement of sorbet-runtime in gemspec.

Automated Tests

Manual Tests

@st0012 st0012 added the bugfix This PR will fix an existing bug label Jan 12, 2024
@st0012 st0012 requested a review from a team as a code owner January 12, 2024 16:14
@st0012 st0012 requested review from KaanOzkan and vinistock January 12, 2024 16:14
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this version also support T::Class? If so, then there are a couple of places where we might be able to improve typing. Not on this PR though.

@st0012
Copy link
Member Author

st0012 commented Jan 12, 2024

@vinistock I think T::Class was introduced in this PR? If that's true, then it's added in version 0.5.10820, which is a few versions later.

@st0012 st0012 merged commit b1c0702 into main Jan 12, 2024
@st0012 st0012 deleted the require-newer-sorbet-runtime branch January 12, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This PR will fix an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RubyLsp::Requests::Request breaks the Ruby LSP extension on shopify-build

3 participants