Skip to content

Fix method call to use property access for subscriptions#1802

Merged
taylorotwell merged 1 commit intolaravel:16.xfrom
larskoole:patch-1
Nov 6, 2025
Merged

Fix method call to use property access for subscriptions#1802
taylorotwell merged 1 commit intolaravel:16.xfrom
larskoole:patch-1

Conversation

@larskoole
Copy link
Contributor

Fixes #1801

Copilot AI review requested due to automatic review settings November 6, 2025 08:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves performance by accessing the subscriptions relationship as a property rather than calling it as a method. This change makes the discounts() method consistent with other methods in the same class that already use the property accessor pattern.

  • Changed $this->subscriptions() to $this->subscriptions in the discounts() method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@taylorotwell taylorotwell merged commit db34671 into laravel:16.x Nov 6, 2025
14 checks passed
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.

discounts() method on Billable model doesn't work

3 participants