blob: 52695343e151834324eb939742cbe93f1329844b (
plain)
1
2
3
4
5
6
7
8
9
10
|
--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
|