Page MenuHomePhabricator

Improve ArcanistXHPASTLinter::LINT_TOSTRING_EXCEPTION
ClosedPublic

Authored by joshuaspence on May 17 2015, 11:13 PM.
Tags
None
Referenced Files
F13817923: D12892.diff
Fri, Sep 20, 4:11 AM
Unknown Object (File)
Sun, Sep 1, 4:27 PM
Unknown Object (File)
Sat, Aug 31, 8:30 AM
Unknown Object (File)
Wed, Aug 28, 8:43 PM
Unknown Object (File)
Sun, Aug 25, 11:03 PM
Unknown Object (File)
Sun, Aug 25, 6:57 PM
Unknown Object (File)
Thu, Aug 22, 5:14 AM
Unknown Object (File)
Aug 19 2024, 6:40 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.