Skip to content

Skip DateTime and DateTimeImmutable arguments - #56

Merged
TomasVotruba merged 1 commit into
mainfrom
skip-datetime
Nov 15, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
skip-datetime

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

A DateTime or DateTimeImmutable argument no longer types the parameter. Such parameters often accept a string or any DateTimeInterface too, so narrowing to the concrete class is risky and not useful.

@TomasVotruba
TomasVotruba merged commit 5b9c6ee into main Nov 15, 2026
4 checks passed
@TomasVotruba
TomasVotruba deleted the skip-datetime branch November 15, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant