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