stable

Clone or download

Read-only

refactor: Use DateTimeImmutable for post dates

No functional change. Post date of timeline events (open/close pull request, change reviewer, add comment, add inline comment) should be saved, retrieved and displayed as before. part of story #32316 Update comments Change-Id: I9b0522fbf2802387d9d3be92f516b95dbc92490f

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Comment/Comment.php +3 −3 Go to diff View file
M plugins/pullrequest/include/PullRequest/Comment/Factory.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/InlineComment/InlineComment.php +4 −4 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/Comment/CommentRepresentation.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/InlineCommentRepresentation.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +2 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/Reviewer/ReviewerChangeTimelineEventRepresentation.php +9 −19 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/TimelineEventRepresentation.php +16 −29 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reviewer/Change/ReviewerChange.php +9 −42 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/Factory.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/TimelineEvent.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/TimelineGlobalEvent.php +10 −5 Go to diff View file
M plugins/pullrequest/tests/unit/Comment/CommentTest.php +4 −3 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentTest.php +5 −6 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Reviewer/ReviewerChangeTimelineEventRepresentationTest.php +4 −12 Go to diff View file
M plugins/pullrequest/tests/unit/Reviewer/Change/ReviewerChangeTest.php +6 −11 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Builders/CommentTestBuilder.php +4 −3 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Builders/InlineCommentTestBuilder.php +8 −7 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Stub/CommentSearcherStub.php +1 −1 Go to diff View file
M plugins/pullrequest/tests/unit/Tests/Stub/InlineCommentSearcherStub.php +1 −1 Go to diff View file