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

TooManyArguments doesn't work for call_user_func #8510

Closed
kkmuffme opened this issue Sep 25, 2022 · 2 comments
Closed

TooManyArguments doesn't work for call_user_func #8510

kkmuffme opened this issue Sep 25, 2022 · 2 comments

Comments

@kkmuffme
Copy link
Contributor

https://psalm.dev/r/a1d15398f9

Basics were implemented in #726 though

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/a1d15398f9
<?php

function foo(string $a) : void {}

foo("hello", 4);

call_user_func( 'foo', "hello", 4);
Psalm output (using commit 028ac7f):

ERROR: TooManyArguments - 5:1 - Too many arguments for foo - expecting 1 but saw 2

@kkmuffme
Copy link
Contributor Author

Turns out it's not only this issue but all issues that don't work - see #10744

@kkmuffme kkmuffme closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants