Page MenuHomePhabricator

Improve ArcanistXHPASTLinter::LINT_TOSTRING_EXCEPTION
ClosedPublic

Authored by joshuaspence on May 17 2015, 11:13 PM.
Tags
None
Referenced Files
F18872022: D12892.id.diff
Wed, Nov 5, 1:52 AM
F18829718: D12892.diff
Sat, Oct 25, 12:19 AM
F18818247: D12892.id31006.diff
Tue, Oct 21, 10:34 PM
F18814179: D12892.diff
Mon, Oct 20, 10:07 PM
F18783536: D12892.diff
Mon, Oct 13, 7:47 AM
F18780738: D12892.id31006.diff
Sun, Oct 12, 7:17 PM
F18250758: D12892.id.diff
Aug 21 2025, 4:59 PM
F17750064: D12892.id31007.diff
Jul 22 2025, 2:39 AM
Subscribers

Details

Summary

The ArcanistXHPASTLinter::LINT_TOSTRING_EXCEPTION linter rule was introduced in D12854, but fails for the following:

  • Interfaces which declare the __toString() method.
  • Classes which mark the __toString() method as abstract.
Test Plan

Added test cases.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve ArcanistXHPASTLinter::LINT_TOSTRING_EXCEPTION.
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, 11:14 PM
This revision was automatically updated to reflect the committed changes.