Skip to content

Core: warn against the use of loose comparisons#1662

Merged
GaryJones merged 1 commit into
developfrom
feature/core-use-strict-comparisons
Apr 3, 2019
Merged

Core: warn against the use of loose comparisons#1662
GaryJones merged 1 commit into
developfrom
feature/core-use-strict-comparisons

Conversation

@jrfnl

@jrfnl jrfnl commented Mar 27, 2019

Copy link
Copy Markdown
Member

As per the proposal in #1624, this moves the sniffs which warn against the use of loose comparisons from Extra to the Core ruleset.

Open actions:

  • Adjust Core PHP handbook to mention this rule in the Clever code section (or wherever else it should go).

/cc @pento

@pento

pento commented Apr 2, 2019

Copy link
Copy Markdown
Member

Handbook is updated.

@jrfnl jrfnl force-pushed the feature/core-use-strict-comparisons branch from c401e13 to eac16c8 Compare April 3, 2019 05:22
@jrfnl

jrfnl commented Apr 3, 2019

Copy link
Copy Markdown
Member Author

Thanks @pento !

I've updated the PR to use the exact text from the handbook in the inline documentation, as well as changed the placement of the rule to match the order of the rules in the handbook.

If there are no objections, this is ready for merge now.

@GaryJones

Copy link
Copy Markdown
Member

There's a merge conflict for this PR.

As per the proposal in 1624, this moves the sniffs which `warn` against the use of loose comparisons to the Core ruleset.

Open actions:
* [x] Adjust Core PHP handbook to mention this rule in the `Clever code` section (or wherever else it should go).
@jrfnl jrfnl force-pushed the feature/core-use-strict-comparisons branch from eac16c8 to d6f9dc0 Compare April 3, 2019 09:20
@jrfnl

jrfnl commented Apr 3, 2019

Copy link
Copy Markdown
Member Author

@GaryJones Yes, I expected that one ;-) I've rebased the PR, should be okay now.

@GaryJones GaryJones merged commit 3b2f881 into develop Apr 3, 2019
@GaryJones GaryJones deleted the feature/core-use-strict-comparisons branch April 3, 2019 14:25
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.

3 participants