Skip to content

Report unknown parameter for implicit variadic methods#4481

Merged
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
VincentLanglet:fix/13719
Oct 25, 2025
Merged

Report unknown parameter for implicit variadic methods#4481
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
VincentLanglet:fix/13719

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

@@ -0,0 +1,25 @@
<?php declare(strict_types = 1);

function non_variadic(string $name, ?string $greeting = null): void {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add namespace Bug13719 to this file

@ondrejmirtes ondrejmirtes merged commit 7b001c8 into phpstan:2.1.x Oct 25, 2025
535 of 549 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.

Named argument validation ignored on functions using func_get_args

2 participants