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

Support Carbon v3 #5

Merged
merged 2 commits into from
Mar 25, 2024
Merged

Support Carbon v3 #5

merged 2 commits into from
Mar 25, 2024

Conversation

matthewpaulking
Copy link
Contributor

I was having trouble installing bits in a brand new Laravel 11 app, which installed Carbon v3. Currently bits only supports v2.

In version 3, the Carbon ->total* properties are now floats instead of integers (see laravel/framework@d1ff9a8). This was causing any test using assertSlept to fail (e.g, $interval->totalMicroseconds === 1 turns into $interval->totalMicroseconds === 1.0).

I added a cast back into an int to fix the failing tests--but maybe it would be better to cast to float?

@inxilpro inxilpro merged commit c411f92 into glhd:main Mar 25, 2024
17 checks passed
@matthewpaulking matthewpaulking deleted the carbon-v3 branch March 25, 2024 17:44
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.

None yet

2 participants