1--TEST--
2Private class constants cannot be final
3--FILE--
4<?php
5
6class Foo
7{
8    private final const A = "foo";
9}
10
11?>
12--EXPECTF--
13Fatal error: Private constant Foo::A cannot be final as it is not visible to other classes in %s on line %d
14