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

[3.x] fix: default date casting #1842

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Feb 11, 2024

Changes
Closes #1744

Thanks!

@calebdw calebdw marked this pull request as draft February 11, 2024 21:10
@calebdw
Copy link
Contributor Author

calebdw commented Feb 11, 2024

Marking as draft until #1831 is merged

@calebdw calebdw force-pushed the default_date_casts branch from 137731f to e4006d7 Compare March 8, 2024 23:56
@calebdw calebdw force-pushed the default_date_casts branch from e4006d7 to 23e5e58 Compare April 14, 2024 21:59
@calebdw calebdw marked this pull request as ready for review April 14, 2024 22:00
@calebdw calebdw force-pushed the default_date_casts branch from 23e5e58 to cdaea6b Compare April 17, 2024 00:29
@calebdw calebdw force-pushed the default_date_casts branch from cdaea6b to f3965d3 Compare June 17, 2024 03:20
@calebdw
Copy link
Contributor Author

calebdw commented Jun 17, 2024

@canvural, I've rebased and tests are passing, can this be merged? This just switches the checks around so that if there's an explicit cast for a date it will use the cast instead of the default date cast.

@szepeviktor
Copy link
Collaborator

@szepeviktor szepeviktor requested a review from canvural October 1, 2024 19:03
@calebdw
Copy link
Contributor Author

calebdw commented Oct 1, 2024

Yes, all this does is just switch the if conditions around to respect the user's custom cast if there is one

@canvural canvural force-pushed the 2.x branch 3 times, most recently from 39d60e2 to c4d0ee6 Compare October 11, 2024 11:07
@calebdw calebdw changed the title fix: default date casting [3.x] fix: default date casting Nov 17, 2024
@calebdw calebdw changed the base branch from 2.x to 3.x November 17, 2024 03:53
@calebdw calebdw force-pushed the default_date_casts branch from 7b36005 to 9b8a6fc Compare January 10, 2025 14:39
@calebdw
Copy link
Contributor Author

calebdw commented Jan 10, 2025

@canvural, I hope you had a refreshing holiday season!

I just rebased all of my PRs on the latest 3.x and the tests are passing. Can we try to get them merged please? 🙏 Some of them have been open for almost a year:

https://github.com/larastan/larastan/pulls/calebdw

Thanks!

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.

Default date field casts are ignored
2 participants