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

docs: rawDiscountFor returns first() StripeObject from collection #1324

Closed

Conversation

markkimsal
Copy link

rawDiscountFor returns a StripeObject or null, not an int. The usage of the return value as an object is displayed in discountFor

        if (! is_null($discountAmount = $this->rawDiscountFor($discount))) {
            return $this->formatAmount($discountAmount->amount);
        }

@driesvints driesvints marked this pull request as draft February 20, 2022 17:23
@driesvints
Copy link
Member

Heya, I sent in an alternative PR that'll fix the method's return value instead. Thanks!

#1325

@driesvints driesvints closed this Feb 21, 2022
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