Skip to content

Conversation

@donatj
Copy link
Contributor

@donatj donatj commented Apr 4, 2019

There exists a bug where if terenary is followed by ?> rather than a semicolon, the RequireShortTernaryOperatorSniff overruns the end of the tokens array throwing an out of bounds error.

This fixes it up and adds an accompanying test.

@kukulich
Copy link
Contributor

kukulich commented Apr 4, 2019

@donatj please squash it to one commit and use commit message as other commits in master. Thanks.

@donatj
Copy link
Contributor Author

donatj commented Apr 4, 2019

@kukulich No problem! How's that look?

@kukulich kukulich merged commit 6b08d62 into slevomat:master Apr 4, 2019
@donatj donatj deleted the fix/RequireShortTernaryOperatorSnifOverrun branch April 4, 2019 19:32
@donatj donatj mentioned this pull request Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants