Skip to content

Relax LastModifiedDeterminator interface to use DateTimeInterface as return type#21

Merged
mpdude merged 1 commit intomasterfrom
relax-return-type
Mar 24, 2026
Merged

Relax LastModifiedDeterminator interface to use DateTimeInterface as return type#21
mpdude merged 1 commit intomasterfrom
relax-return-type

Conversation

@mpdude
Copy link
Member

@mpdude mpdude commented Mar 24, 2026

This relaxes the interface that clients need to implement to return DateTimeInterface instead of DateTime.

For methods like ReplaceWithNotModifiedResponse::determineLastModified(), a relaxed return type technically is a BC break. However, that method was never meant to be used by outside clients, it is part of the inner workings of this bundle. To state this more clearly for the future, @internal docblocks are added as well.

@mpdude mpdude merged commit e660f65 into master Mar 24, 2026
6 checks passed
@mpdude mpdude deleted the relax-return-type branch March 24, 2026 07:28
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.

1 participant