php-src/tests/classes/interface_constant_inheritance_001.phpt
Máté Kocsis a5360e80c2
Add support for final class constants
RFC: https://wiki.php.net/rfc/final_class_const

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
2021-07-06 21:42:38 +02:00

17 lines
203 B
PHP

--TEST--
Ensure an interface may not shadow an inherited constant.
--FILE--
<?php
interface I1 {
const FOO = 10;
}
interface I2 extends I1 {
const FOO = 10;
}
echo "Done\n";
?>
--EXPECT--
Done