
For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anonymous classes, since they cannot be made abstract, the error message is slightly different. Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
13 lines
220 B
PHP
13 lines
220 B
PHP
--TEST--
|
|
ZE2 An interface method cannot be private
|
|
--FILE--
|
|
<?php
|
|
|
|
interface if_a {
|
|
private function err();
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Access type for interface method if_a::err() must be public in %s on line %d
|