-
Notifications
You must be signed in to change notification settings - Fork 650
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
Add CallableTooManyArguments error #8686
Comments
Hey @vudaltsov, can you reproduce the issue on https://psalm.dev ? |
I went check for this, I think I confused something when we discussed about this. The actual issue that is now raised is Sorry for possibly obvious questions, just want to make sure what we deal with here |
+1 from me for a CallableTooManyArguments, I think that makes sense (I created the original PR that changed the behavior to make this necessary in the first place) to have a distinct error. Atm it's either an PossiblyInvalidArgument (https://psalm.dev/r/21831d9d20) or InvalidScalarArgument in those cases. @vudaltsov can you create a PR for that? |
I found these snippets: https://psalm.dev/r/21831d9d20<?php
/**
* @param callable(string, string) $arg
* @return void
*/
function foo( $arg ) {}
/**
* @param string $a
* @return void
*/
function bar( $a ) {}
foo( 'bar' );
|
See discussion in #8593 (comment).
The text was updated successfully, but these errors were encountered: