slevomat / coding-standard

Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs
MIT License
1.37k stars 170 forks source link

Argument requires ParamTagValueNode, TypelessParamTagValueNode given #1656

Closed JayroBoy closed 5 months ago

JayroBoy commented 5 months ago

I have recently been placed responsible over a PHP application that was configured by someone else and uses PHPCS as part of its QA process. Since the last update I have been getting the following error when running phpcs:

Fatal error: Uncaught TypeError: SlevomatCodingStandard\Helpers\Annotation\ParameterAnnotation::__construct(): 
Argument #5 ($contentNode) must be of type ?PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode,
PHPStan\PhpDocParser\Ast\PhpDoc\TypelessParamTagValueNode given

I have looked through the call stack and there seems to be only third-party(relative to the application) code present in it. Googling the error yields no recent results, similar to github search. Is it possible that this is a bug/issue or is the most likely cause faulty configuration?

kukulich commented 5 months ago

It looks you don't use latest version of this library.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.