Skip to content

Improve idate() return types#4321

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
vrana:idate
Sep 15, 2025
Merged

Improve idate() return types#4321
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
vrana:idate

Conversation

@vrana
Copy link
Copy Markdown
Contributor

@vrana vrana commented Sep 11, 2025

My first implementation also modified DateFunctionReturnTypeHelper to call IdateFunctionReturnTypeHelper but it was quite messy and it wasn't obvious what's coming from where.

Comment thread src/Type/Php/IdateFunctionReturnTypeHelper.php Outdated
Comment thread src/Type/Php/IdateFunctionReturnTypeExtension.php
Comment thread src/Type/Php/IdateFunctionReturnTypeHelper.php Outdated
@ondrejmirtes ondrejmirtes merged commit fc35414 into phpstan:2.1.x Sep 15, 2025
444 of 456 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

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.

3 participants