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

Invalid class reference in @throws causes crash #9248

Closed
weirdan opened this issue Feb 9, 2023 · 2 comments · Fixed by #9250
Closed

Invalid class reference in @throws causes crash #9248

weirdan opened this issue Feb 9, 2023 · 2 comments · Fixed by #9250

Comments

@weirdan
Copy link
Collaborator

weirdan commented Feb 9, 2023

https://psalm.dev/r/2a6a3a1b38

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/2a6a3a1b38
<?php

final class Monkey {
    /** @throws InvalidArgumentException */
    public function spendsItsDay(): void {
        $this->havingFun();
    }
    /** @throws \Monkey\Shit */
    private function havingFun(): void {}
}
Psalm encountered an internal error:

/vendor/vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php: Could not get class storage for monkey\shit

@weirdan
Copy link
Collaborator Author

weirdan commented Feb 9, 2023

This is what crashes bin/test-with-real-projects.sh phpunit on CircleCI.

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.

1 participant