blob: dabec2cc6ddf668521dc07156afb3d65684c82a2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--TEST--
Ensure a interface can not have protected constants
--FILE--
<?php
interface A {
protected const FOO = 10;
}
?>
--EXPECTF--
Fatal error: Access type for interface constant A::FOO must be public in %s on line 3
|