-
Notifications
You must be signed in to change notification settings - Fork 351
Allow DateTimeInterfaces
in BlameTimestampSubscriber
#7797
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
Conversation
use TimestampableTrait; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this should be the only implementation on how to handle the changed
and created
state.
7f853b2
to
9bfb888
Compare
This could also be downported to 2.5. |
@alexander-schranz Should I downport these changes to 2.5 seeing that I will get problems when merging the baseline anyways? |
src/Sulu/Bundle/PageBundle/Search/EventSubscriber/BlameTimestampSubscriber.php
Show resolved
Hide resolved
src/Sulu/Bundle/PageBundle/Search/EventSubscriber/BlameTimestampSubscriber.php
Outdated
Show resolved
Hide resolved
b22ce2f
to
97df34f
Compare
src/Sulu/Bundle/PageBundle/Search/EventSubscriber/BlameTimestampSubscriber.php
Outdated
Show resolved
Hide resolved
src/Sulu/Bundle/PageBundle/Search/EventSubscriber/BlameTimestampSubscriber.php
Outdated
Show resolved
Hide resolved
Code reformats and cleanups should be done in own PRs
f37dc46
to
d49faa8
Compare
DateTimeInterfaces
in BlameTimestampSubscriber
@wachterjohannes Here is the PR that can even be merged into 2.5 without bc breaks for the types in the mapper. Just waiting for a merge. |
@mamazu & @alexander-schranz do we really want to use datetimeinterface? i would keep in 2.5 and 2.6 the datetime and change that for 3.0 to immutable - dont see the benefits here |
@wachterjohannes I personal would go for 3.0 with datetimeimmutable. |
@alexander-schranz OK then i will close this MR. @mamazu this change does not have any impact on the code for pre 3.0 so we close it. Additionally to that i have updated the MR for 3.0 with DateTimeImmutable. |
What's in this PR?
DateTimeInterface
instead ofDateTime
in themapTimestamp
Why?
Preparation for using the immutable version of the DateTime.