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

Replaced implicit type coercion with strict type check #397

Merged
merged 1 commit into from Aug 25, 2020

Conversation

Bilge
Copy link
Contributor

@Bilge Bilge commented Aug 22, 2020

By comparing $agent to the empty strict with loose equivalence (==) instead of strict equality (===), this permits matching more than just the empty string, according to the PHP type comparison truth table. Specifically, $agent will also match if it contains the string "0", rather than being empty, which I believe should be regarded as a false positive.

@MaxGiting MaxGiting merged commit ddfeeed into JayBizzle:master Aug 25, 2020
@MaxGiting
Copy link
Collaborator

This makes sense to do. Thank you

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.

None yet

2 participants