Skip to content

Conversation

kylekatarnls
Copy link
Contributor

@kylekatarnls kylekatarnls commented Jul 11, 2023

Microsecond was 0 because of a PHP bug:
https://bugs.php.net/bug.php?id=74332

And because Carbon aligned its behavior.

But it now longer make sense now that most PHP versions handle it properly, I plan to remove this hack briannesbitt/Carbon#2823

In order to keep the Laravel tests compatible, the easiest way would be ignore microsecond in the date comparison assertion.

Microsecond was 0 because of a PHP bug:
https://bugs.php.net/bug.php?id=74332

And because Carbon aligned its behavior.

But it now longer make sense now that most PHP versions handle it properly so I plan to remove this hack
briannesbitt/Carbon#2823

In order to keep the Laravel tests compatible, the easiest way would be ignore microsecond in the date comparison assertion.
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