Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jul 23, 2025

No description provided.

$this->takesVariadic(...$arr);
}

private function takesVariadic(Node ...$node)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

before this PR, this test on line 18 got the following error:

Parameter 1 should use "array<int, PhpParser\Node>" type as the only type passed to this method

as the error-message suggested phpdoc type does not provide more information, than the native type already has, I suggest to drop the error for such cases

@staabm staabm marked this pull request as ready for review July 23, 2025 12:33
@samsonasik samsonasik merged commit 67cd905 into rectorphp:main Jul 23, 2025
6 checks passed
@samsonasik
Copy link
Member

Thank you @staabm

@staabm staabm deleted the variadic branch July 23, 2025 12:49
@staabm
Copy link
Contributor Author

staabm commented Jul 23, 2025

@samsonasik thanks.

since there are more useful changes on the main branch - do you plan a new release in the near future?

@samsonasik
Copy link
Member

/cc @TomasVotruba

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.

2 participants