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
F19827017: D12856.diff
Mon, Mar 9, 4:56 AM
F19826675: D12856.id31015.diff
Sun, Mar 8, 11:52 PM
F19804768: D12856.id31015.diff
Mon, Mar 2, 10:50 AM
F19681601: D12856.id.diff
Sun, Feb 8, 10:08 PM
F19625943: D12856.id31015.diff
Feb 4 2026, 7:15 PM
F19363470: D12856.id31014.diff
Dec 26 2025, 11:26 AM
F19022060: D12856.diff
Nov 23 2025, 8:15 PM
F19016932: D12856.id30926.diff
Nov 23 2025, 5:58 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.