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

[5.x] Clone the date in modifyDate modifier #9688

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request calls ->clone() on the Carbon instance in the modifyDate modifier before it does any date modifying, so the original date instance doesn't change.

This change was initially PR'd by @JayGeorge in #9101. This PR just copies the over to the master branch, for v5.

Related: #9100

@jasonvarga jasonvarga merged commit 7b72b46 into master Mar 11, 2024
32 checks passed
@jasonvarga jasonvarga deleted the clone-date-in-modify-date-modifier branch March 11, 2024 16:51
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