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

Incorrect number of expected function arguments #5137

Closed
morozov opened this issue Jun 5, 2021 · 3 comments
Closed

Incorrect number of expected function arguments #5137

morozov opened this issue Jun 5, 2021 · 3 comments

Comments

@morozov
Copy link
Contributor

morozov commented Jun 5, 2021

Bug report

I accidentally stumbled upon it while trying to reproduce another issue in the playground.

Code snippet that reproduces the problem

https://phpstan.org/r/9284b4d1-06c4-48a2-9c7e-88cc5002efce

Expected output

No error. The test1() function does expect an argument.

@ondrejmirtes
Copy link
Member

Something weird is going on, it doesn't work for functions that are named differently: https://phpstan.org/r/4bdef194-ea43-46a8-bf3a-8fe68402ac03

@ondrejmirtes
Copy link
Member

Fixed: phpstan/php-8-stubs@c47d9ca + phpstan/phpstan-src@10a833f

@github-actions
Copy link

github-actions bot commented Jul 8, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants