1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/tests/classes/interface_constant_inheritance_006.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

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