Not getting expected signatures with phpstan

Answered

PHPStan is not giving me callable signatures like I would expect. I would expect it to give me the full signature, but it only gives me “callable|null”. Any ideas why this may be?

 

I have installed the “phpstan support” plugin and confirmed it is working because it suggests an annotation.

I enabled its inspections.

And I confirmed its “Quality Tools” path is empty, like the documentation says.

 

But then I also can't get things like @psalm-type or @phpstan-type working, so maybe they aren't installed correctly.

0
1 comment

Advanced callables are supported on a parser level: https://youtrack.jetbrains.com/issue/WI-55914, but what exactly callable accepts isn't shown. Seems like there are no explicit feature requests for this so you are welcome to submit this to our tracker at https://youtrack.jetbrains.com/newIssue as a new feature.

0

Please sign in to leave a comment.