]> khamidou — GitHub mirrors - arcanist.git/commit
Add a linter rule for `abstract` methods within an `interface`
authorJoshua Spence <josh@freelancer.com>
Wed, 25 Nov 2015 20:21:29 +0000 (07:21 +1100)
committerJoshua Spence <josh@freelancer.com>
Wed, 25 Nov 2015 20:23:22 +0000 (07:23 +1100)
commitb323ad4d64848f0c4eb65390f6e6143c40c04136
treeb45d364ab66a5ebf09d0b43ca76b76cbb227fd25
parent8183a458048cc01e66d3a76f2e7da66f9e0e70fa
Add a linter rule for `abstract` methods within an `interface`

Summary:
`interface`s cannot contain `abstract` methods. This construct will cause a PHP fatal error:

```
Access type for interface method SomeInterface::someMethod() must be omitted
```

Test Plan: Added test cases.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14562
src/__phutil_library_map__.php
src/lint/linter/xhpast/rules/ArcanistInterfaceAbstractMethodXHPASTLinterRule.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistInterfaceAbstractMethodXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/interface-abstract-method/abstract.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/interface-abstract-method/no-abstract.lint-test [new file with mode: 0644]