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

Flag @params that reference missing parameters #6015

Closed
weirdan opened this issue Jun 29, 2021 · 2 comments
Closed

Flag @params that reference missing parameters #6015

weirdan opened this issue Jun 29, 2021 · 2 comments

Comments

@weirdan
Copy link
Collaborator

weirdan commented Jun 29, 2021

https://psalm.dev/r/2c804bf8e6

They are confusing, and useless even for old-style variadics.

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/2c804bf8e6
<?php

/** @param int $param */
function f(): void {
}

f("zzz");

/** @param int $param */
function f2(): void {
    echo join(',', func_get_args());
}

f2("zzz");
Psalm output (using commit 5ea98d6):

ERROR: TooManyArguments - 7:1 - Too many arguments for f - expecting 0 but saw 1

@weirdan weirdan changed the title Flag @params that reference missing parameters Flag @params that reference missing parameters Jun 29, 2021
@weirdan
Copy link
Collaborator Author

weirdan commented Feb 16, 2023

Fixed in #9314

@weirdan weirdan closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2023
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

1 participant