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

Add Type::reverseArray() #3344

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Aug 23, 2024

Improves return type specification of lists and various edge cases with array_reverse().

@herndlm herndlm marked this pull request as draft August 23, 2024 10:01
@herndlm herndlm force-pushed the array-reverse branch 2 times, most recently from b51481d to 4de50b2 Compare August 23, 2024 11:00
@herndlm herndlm marked this pull request as ready for review August 23, 2024 11:09
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@herndlm herndlm changed the base branch from 1.11.x to 1.12.x August 27, 2024 10:39
@herndlm
Copy link
Contributor Author

herndlm commented Aug 30, 2024

this one is simple (I think) and should be ready :) sorry for the impatience, I want to work on a follow-up that should improve array_reverse for constant arrays :)

@ondrejmirtes
Copy link
Member

Love it, thanks!

@ondrejmirtes ondrejmirtes merged commit 3116a1b into phpstan:1.12.x Sep 5, 2024
489 of 499 checks passed
@herndlm herndlm deleted the array-reverse branch September 5, 2024 15:57
@herndlm
Copy link
Contributor Author

herndlm commented Sep 5, 2024

thank you! felt good finally contributing something again, even if it's a simple thing like that :)

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.

4 participants