blob: 125326b224f1850ccc0806de1167a1c63d38e323 (
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
|