We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/** * @return (true is true ? array<int> : array<string>) */ function a(): array { return []; }
gives
SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification
The text was updated successfully, but these errors were encountered:
I think there's no support for this in https://github.com/phpstan/phpdoc-parser
Sorry, something went wrong.
Ah so the reason is phpstan parser don't know conditional types yet?
Yes. The support has to be added to parser first, then to this repository.
Might be related to phpstan/phpstan#3853 I guess
Implemented in be7898d
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.
No branches or pull requests
gives
The text was updated successfully, but these errors were encountered: