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

EscapeOutput: use Sniff::$safe_casts #1788

Merged
merged 1 commit into from Aug 5, 2019

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 4, 2019

The Sniff::$safe_casts token list and the EscapeOutputSniff::$safe_cast_tokens were near duplicates.

This removes the duplicate code (which can be safely removed as it is a private property) and adds the missing T_UNSET_CAST to the Sniff::$safe_casts list.

The `Sniff::$safe_casts` token list and the `EscapeOutputSniff::$safe_cast_tokens` were near duplicates.

This removes the duplicate code (which can be safely removed as it is a `private` property) and adds the missing `T_UNSET_CAST` to the `Sniff::$safe_casts` list.
@dingo-d dingo-d merged commit 05c0ee4 into develop Aug 5, 2019
@jrfnl jrfnl deleted the feature/escapeoutput-minor-cleanup branch August 5, 2019 11:21
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

3 participants