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

Crash because of int overflow with unary minus #9464

Closed
M393 opened this issue Mar 7, 2023 · 1 comment · Fixed by #9466
Closed

Crash because of int overflow with unary minus #9464

M393 opened this issue Mar 7, 2023 · 1 comment · Fixed by #9466

Comments

@M393
Copy link
Contributor

M393 commented Mar 7, 2023

https://psalm.dev/r/7bfda26ddd

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/7bfda26ddd
<?php
-(1 << 63);
Psalm encountered an internal error:

/vendor/vimeo/psalm/src/Psalm/Type/Atomic/TLiteralInt.php: Psalm\Type\Atomic\TLiteralInt::__construct(): Argument #1 ($value) must be of type int, float given, called in /vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/Statements/Expression/UnaryPlusMinusAnalyzer.php on line 54

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