-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate interface method access type
- Loading branch information
Showing
5 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/org.eclipse.php.core.tests/workspace/errors/php7/interfaceMethodAccessType.pdtt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--TEST-- | ||
Test interface problems | ||
--FILE-- | ||
<?php | ||
interface TestInterfaceAccess { | ||
abstract function f1(); | ||
protected function f2(); | ||
private function f3(); | ||
} | ||
?> | ||
--EXPECT-- | ||
[line=3, start=39, end=47] Access type for interface method TestInterfaceAccess::f1() must be omitted | ||
[line=4, start=64, end=72] Access type for interface method TestInterfaceAccess::f2() must be omitted | ||
[line=5, start=90, end=98] Access type for interface method TestInterfaceAccess::f3() must be omitted |