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

Fix using $this in static context in Subscription.php #239

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

Woutrrr
Copy link
Contributor

@Woutrrr Woutrrr commented Apr 18, 2024

The updated Subscription::handlePaymentPaid changed in #220 is a static function, but tries to use $this. This causes php to throw an exception Error: Using $this when not in object context. The $subscription variable is already available, so this could be used instead of $this.

Subscription::handlePaymentPaid is a static function, thus $this is not available and gives an exception.
@Naoray
Copy link
Collaborator

Naoray commented Apr 19, 2024

Hi @Woutrrr,

thanks for letting us know and provide a fix!

@Naoray Naoray merged commit cd54a44 into mollie:main Apr 19, 2024
6 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.

2 participants