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

Internal Psalm error on invalid @template syntax #9596

Closed
alies-dev opened this issue Apr 2, 2023 · 1 comment · Fixed by #10806
Closed

Internal Psalm error on invalid @template syntax #9596

alies-dev opened this issue Apr 2, 2023 · 1 comment · Fixed by #10806

Comments

@alies-dev
Copy link
Contributor

Not sure what is the correct behaviour, but one of my dependencies has an invalid @template syntax that lead to fatal error:
https://psalm.dev/r/37a5a853bb

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/37a5a853bb
<?php

/**
 * @template TValidationRule of callable>|string
 */
trait PerformsValidation
{}
Psalm encountered an internal error:

/vendor/vimeo/psalm/src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeNodeScanner.php: callable>|string is not a valid type: Invalid string callable>|string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants