Skip to content

Conversation

@herndlm
Copy link
Contributor

@herndlm herndlm commented Apr 13, 2022

Closes phpstan/phpstan#7020

It was not my intention to completely refactor this extension, but it kind of happened while adding variadic support, sorry 😅 I normally would try to separate such things in multiple PRs. But the fix needed the refactor, the tests here were good enough and it's all quite local I think. Variadic support is only added via that one line checking ->unpack CC @staabm

@herndlm herndlm changed the base branch from 1.6.x to 1.5.x April 13, 2022 08:43
@herndlm herndlm marked this pull request as ready for review April 13, 2022 08:58
@staabm
Copy link
Contributor

staabm commented Apr 13, 2022

Variadic support is only added via that one line checking ->unpack

I agree its hard to follow and the fix itself would have been a great separate PR. but lets see how ondrej thinks about that

@herndlm herndlm force-pushed the support-variadic-parameter-in-array-replace branch from 86dbeb8 to d36d9ba Compare April 13, 2022 09:50
@ondrejmirtes ondrejmirtes merged commit 1c1fc7c into phpstan:1.5.x Apr 13, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@herndlm herndlm deleted the support-variadic-parameter-in-array-replace branch April 13, 2022 11:42
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.

Return type of variadic function is not correctly determined

3 participants