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

[10.x] Ignore second in HttpRequestTest date comparison #47719

Merged
merged 1 commit into from
Jul 12, 2023

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