-
Notifications
You must be signed in to change notification settings - Fork 665
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
Psalm crash on @return (
#6159
Comments
I found these snippets: https://psalm.dev/r/b566eeeb37<?php
/**
* @return (
*/
function foo () {}
|
I've been looking into this issue. The cause is when an Psalm will crash with any variation of the following input for On a slightly unrelated note, I've also found that |
I don't think anything needs to be done about the latter, as long as parens are balanced. Parentheses are valid in a type, they are used to override union vs intersection precedence (e.g. |
Ah okay, thank you for the information - I thought I might have been missing something. I'll raise a PR for this as soon as I can 😄 |
https://psalm.dev/r/b566eeeb37
The text was updated successfully, but these errors were encountered: