Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for passing in a Carbon 3 object
Carbon 3 made some breaking changes here. (Specifically from the Laravel 11 upgrade) If we're using Carbon, let's use the diffInDays method to get the difference in days. Otherwise, we're probably using DateTime, so we'll use the diff method. See: https://carbon.nesbot.com/docs/#api-carbon-3 https://www.php.net/manual/en/class.dateinterval.php This definitely isn't the ultimate answer here - but it fixes the breaking change for my SaaS.
- Loading branch information