Page MenuHomePhabricator

Add a linter rule for the instanceof operator
ClosedPublic

Authored by joshuaspence on May 15 2015, 10:15 AM.
Tags
None
Referenced Files
F14806281: D12856.id30926.diff
Sun, Jan 26, 1:22 AM
F14806274: D12856.id31015.diff
Sun, Jan 26, 1:18 AM
F14806260: D12856.id31014.diff
Sun, Jan 26, 12:58 AM
Unknown Object (File)
Fri, Jan 24, 4:32 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Subscribers

Details

Summary

The instanceof operator expects the first argument to be an object instance. See http://www.phpwtf.org/instanceof-smart.

Test Plan

Added test case

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for the instanceof operator.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 17 2015, 12:58 PM
This revision was automatically updated to reflect the committed changes.