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

Uncaught InvalidArgumentException: $class cannot be empty with broken @method docblock #3721

Closed
weirdan opened this issue Jun 30, 2020 · 2 comments
Labels

Comments

@weirdan
Copy link
Collaborator

weirdan commented Jun 30, 2020

Seen in the wild with this file

Originally posted by @XedinUnknown in #1730 (comment)

Reproduced: https://psalm.dev/r/ba7f32349e (psalm.dev produces no visible output because of notices polluting the JSON output).

@psalm-github-bot
Copy link

psalm-github-bot bot commented Jun 30, 2020

I found these snippets:

https://psalm.dev/r/ba7f32349e
<?php
/** 
 * @method
 */
class C {}
Psalm encountered an internal error:

/vendor/vimeo/psalm/src/Psalm/Type.php: $class cannot be empty

@weirdan weirdan added the bug label Jun 30, 2020
@XedinUnknown
Copy link
Contributor

Thanks for looking into it! At a glance, I couldn't determine what was wrong with the file. But in any case, no matter how wrong the file is, it should not cause Psalm to crash. Looking forward!

@muglug muglug closed this as completed in 4c368da Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants