Skip to content

Conversation

daika7ana
Copy link
Contributor

Takes into account Carbon v3 new default parameter value on the diffInSeconds method.

Carbon v2 method blueprint:

public function diffInSeconds($date = null, $absolute = true)

Carbon v3 method blueprint:

public function diffInSeconds($date = null, bool $absolute = false): float

Fixes failing tests:

public function testModelCacheDoesntInvalidateDuringCooldownPeriod()

@daika7ana daika7ana mentioned this pull request Jun 16, 2024
@mikebronner
Copy link
Owner

Needs to run and pass all tests, for some reason they weren't triggered.

@mikebronner mikebronner self-requested a review September 11, 2024 13:06
@mikebronner mikebronner merged commit b28e030 into mikebronner:master Feb 26, 2025
1 check passed
@daika7ana daika7ana deleted the fix-carbon-compatibility branch February 28, 2025 21:59
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