-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Ban DateTime from the codebase #47730
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
you should not mark this PR is fixing the issue, as it only does part of the work. We don't want the issue to get closed automatically by github when only that PR is merged. So having a link to the issue is good, but you should not have Note: I edited the PR description to remove it, but please be careful about that for your next PRs |
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.
This component is still using date_create
, which needs to be migrated to date_create_immutable
instead
thanks for for it @stof, I wasn't aware of this.
Nice catch thanks ! |
@WebMamba looks like I miunderstood what you meant by "I'll process component by component", as it seems like you are adding other components in the same PR (which would invalidate my previous approval as it was only for BrowserKit). If you want us to review it component by component, separate PRs would be a better fit. |
@nicolas-grekas asked me to process it like this. I do all the easy changes here and if we spot a tricky one we do a dedicated PR |
src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/DoctrineIntegrationTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php
Outdated
Show resolved
Hide resolved
Thanks, @stof for your review! All the things you spotted are corrected now! 👍 |
src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveClassPassTest.php
Show resolved
Hide resolved
Thank you @WebMamba. |
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- Ban DateTime from the codebase | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | yes | Deprecations? | yes | Tickets | symfony#47580 | License | MIT | Doc PR | symfony As discuss in this issue, the purpose of this PR is to remove DateTime from the code base in favor to DateTimeImmutable. I will process it component by component. Feel free to discuss! Commits ------- 689385a Ban DateTime from the codebase
As discuss in this issue, the purpose of this PR is to remove DateTime from the code base in favor to DateTimeImmutable. I will process it component by component. Feel free to discuss!