Methods cannot be marked as both abstract and private. This language construct will cause a fatal error:
PHP Fatal error: Abstract function X::Y() cannot be declared private in /home/josh/workspace/github.com/phacility/arcanist/test.php on line 4
Differential D14558
Add a linter rule for `abstract private` methods joshuaspence on Nov 23 2015, 8:28 PM. Authored by Tags None Referenced Files
Subscribers
Details
Methods cannot be marked as both abstract and private. This language construct will cause a fatal error: PHP Fatal error: Abstract function X::Y() cannot be declared private in /home/josh/workspace/github.com/phacility/arcanist/test.php on line 4 Added unit tests.
Diff Detail
Event TimelineComment Actions We could, of course, build this into the language definition itself, but I think that this will make a huge mess. Its also be rt of nice that we can parse almost-valid PHP for the purposes of syntax highlighting, as an example. |