Skip to content

Fix type-less variadic argument in anonymous function#332

Merged
ondrejmirtes merged 1 commit intophpstan:masterfrom
jlherren:master
Oct 7, 2020
Merged

Fix type-less variadic argument in anonymous function#332
ondrejmirtes merged 1 commit intophpstan:masterfrom
jlherren:master

Conversation

@jlherren
Copy link
Copy Markdown
Contributor

@jlherren jlherren commented Oct 6, 2020

Type inferrence was ignoring the variadicity of the argument which wrongly
resulted in type mixed instead of array<int, mixed>.

Fixes phpstan/phpstan#3559

Type inferrence was ignoring the variadicity of the argument which wrongly
resulted in type mixed instead of array<int, mixed>.
@ondrejmirtes ondrejmirtes merged commit 3ede2a4 into phpstan:master Oct 7, 2020
@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.

False positive for array_filter

2 participants