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

Endless loop in PSR1 SideEffects sniffer if no semicolon after last statement #670

Merged
merged 1 commit into from Aug 13, 2015

Conversation

thomasjfox
Copy link
Contributor

findNext() might return false, so we have to check for that.
Otherwise we overwrite our loop variable and get stuck.

Detected while playing around with the horde source tree.

Update v2: Fixed a "PRS1" <-> "PSR1" typo in my branch name / commit message.

findNext() might return false, so we have to check for that.
Otherwise we overwrite our loop variable and get stuck.

Detected while playing around with the horde source tree.
@gsherwood gsherwood changed the title Fix endless loop in PSR1 SideEffects sniffer Endless loop in PSR1 SideEffects sniffer if no semicolon after last statement Aug 13, 2015
@gsherwood gsherwood merged commit 2fbf247 into squizlabs:master Aug 13, 2015
@gsherwood
Copy link
Member

Thanks a lot for the fix, and special thanks for that unit test.

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

Successfully merging this pull request may close these issues.

None yet

2 participants