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

PHPCS: Use strict comparisons #16381

Merged
merged 2 commits into from
Jul 2, 2019
Merged

PHPCS: Use strict comparisons #16381

merged 2 commits into from
Jul 2, 2019

Conversation

Soean
Copy link
Member

@Soean Soean commented Jul 1, 2019

Description

Rule: Unless absolutely necessary, loose comparisons should not be used, as their behaviour can be misleading.

  • Use strict comparisons === instead of ==.
  • Use in_array() with strict parameter

@Soean Soean added the [Type] Code Quality Issues or PRs that relate to code quality label Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants