[hphpi] report errors with wrong interface declarations
Summary:
(1) if it's not an interface but an existing class; (2) if a method has
non-public access.
Test Plan:
fast_tests, report same errors as PHP does:
<?php
abstract class Foo {}
class Bar implements Foo {}
<?php
interface foo {
protected function bar();
}
DiffCamp Revision: 173511
Reviewed By: mwilliams
CC: mwilliams, hphp-diffs@lists
Tasks:
#420345: hphpi allows implementing a non-interface
#419433: ape/hphpi inconsistency
Revert Plan:
OK