1--TEST--
2Final class constants cannot be overridden
3--FILE--
4<?php
5
6class Foo
7{
8 final const A = "foo";
9}
10
11class Bar extends Foo
12{
13 const A = "bar";
14}
15
16?>
17--EXPECTF--
18Fatal error: Bar::A cannot override final constant Foo::A in %s on line %d
19