Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ReqParam instead Param because Param is an abstract class #1467

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Apr 4, 2023

Motivation

New version of Sorbet will prohibit initialising abstract classes directly (related PR), which means Param could not be directly used anymore. And as @Morriar pointed out in Shopify/rbi#160 (review), we should use ReqParam for the current Param usages anyway.

Implementation

Replace Param invocations with ReqParam.

Tests

I think existing tests should already cover those cases.

@st0012 st0012 requested a review from a team as a code owner April 4, 2023 19:37
@st0012 st0012 self-assigned this Apr 4, 2023
@st0012 st0012 merged commit 78bfbe1 into main Apr 4, 2023
@st0012 st0012 deleted the use-reqparam-instead branch April 4, 2023 19:59
@shopify-shipit shopify-shipit bot temporarily deployed to production April 12, 2023 17:19 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants