mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
7aacc705d0
Closes GH-5958
11 lines
223 B
PHP
11 lines
223 B
PHP
--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
|