Skip to content
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

DateTime->format() should have the same type-inference then date() #6550

Closed
staabm opened this issue Feb 2, 2022 · 2 comments
Closed

DateTime->format() should have the same type-inference then date() #6550

staabm opened this issue Feb 2, 2022 · 2 comments

Comments

@staabm
Copy link
Contributor

staabm commented Feb 2, 2022

https://phpstan.org/r/6e6a9d1c-c848-4c22-bc1b-def3b71e753c

see https://github.com/phpstan/phpstan-src/blob/master/src/Type/Php/DateFunctionReturnTypeExtension.php

same for all aliases mentioned at https://www.php.net/manual/de/datetime.format.php

I can work on it

@staabm staabm changed the title DateTime(Immutable)->format() should have the same type-inference then date() DateTime->format() should have the same type-inference then date() Feb 2, 2022
@ondrejmirtes
Copy link
Member

Implemented: phpstan/phpstan-src@b49df58

@github-actions
Copy link

github-actions bot commented Apr 1, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants