You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php/** * @param callable(int $i): void $c */functionf(callable$c): void {
$c('a'); // Psalm properly see that the first argument is an int $c(i: 0); // But its name was forgotten
}
Psalm output (using commit b940c7e):
ERROR: InvalidArgument - 7:8 - Argument 1 expects int, but 'a' provided
ERROR: InvalidNamedArgument - 8:8 - Parameter $i does not exist on function
callable signatures can have variable names, but I think they are ignored
now that we can use named arguments at call time, it would be useful to support them
https://psalm.dev/r/96ddbe571b
The text was updated successfully, but these errors were encountered: