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