Closed larsjanssen6 closed 5 years ago
Hi @larsjanssen6,
Given the error message it doesn't seem to be an issue with a string, but with Carbon\Carbon
vs Carbon\CarbonImmutable
. Can you confirm this?
@sandervanhooft Yes correct.
Are you in any way overriding the default Carbon behavior?
When I try it in a fresh laravel project + mollie cashier package it's working. So I guess it's something in my project. I don't override the default carbon behavior. Will let you know when I find it. Thanks for your reaction :)
No problem @larsjanssen6. Thanks for letting me know!
Had the same issue. Happened because I was trying to cancel a subscription that was in it's grace period.
Hi,
When I try to cancel a subscription:
I get this error message:
It goes wrong in this method:
When I
dd($this->cycle_ends_at);
I get a string. But I would except aCarbon
instance. ThecancelAt
method expects aCarbon
instance that's why I receive this error.Am I doing something wrong or is this a bug ?