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

Add stubs for daterange field type #786

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ceesgeene
Copy link
Contributor

@ceesgeene ceesgeene commented Jul 11, 2024

Resolves #369

Note this MR is a follow up on #785

Also please carefully review the @property-read null $date. Not sure if this is the best solution. Maybe we should just remove the extends DateTimeItem.

@ceesgeene ceesgeene force-pushed the daterange-field-type branch from 7105f8b to 1023a10 Compare July 11, 2024 20:11
@ceesgeene ceesgeene changed the title Daterange field type Add stubs for daterange field type Jul 11, 2024
@ceesgeene ceesgeene force-pushed the daterange-field-type branch from 1023a10 to 33bff49 Compare July 12, 2024 05:20
@ceesgeene ceesgeene force-pushed the daterange-field-type branch 2 times, most recently from 8de9dcb to 08a3eaa Compare July 12, 2024 05:30
Copy link
Owner

@mglaman mglaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to see why the CI failed

Comment on lines 8 to 10
* @property-read null $date
* Even though this extends DateTimeItem, the date property does not actually
* exist. It is not possible to undo a property definition.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... That is problematic.

@ceesgeene ceesgeene force-pushed the daterange-field-type branch from 08a3eaa to 517664a Compare July 13, 2024 07:41
@ceesgeene ceesgeene force-pushed the daterange-field-type branch from 517664a to 9b4a099 Compare July 20, 2024 14:41
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.

datetime_range.module field type stubs
2 participants