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

Prevent crashing for negative bit shifts #1447

Merged
merged 1 commit into from Jun 20, 2022

Conversation

rvanvelzen
Copy link
Contributor

Comment on lines +7 to +10
function () {
assertType('*ERROR*', 1 << -1);
assertType('*ERROR*', 1 >> -1);
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used a simpler test case, because the test case in the issue took around a minute to process. This tests exactly the same thing.

@ondrejmirtes ondrejmirtes merged commit b646806 into phpstan:1.7.x Jun 20, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@rvanvelzen rvanvelzen deleted the negative-shift branch September 6, 2022 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants