1--TEST--
2Class private constant visibility error
3--FILE--
4<?php
5class A {
6    private const privateConst = 'privateConst';
7}
8
9var_dump(A::privateConst);
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Cannot access private constant A::privateConst in %s:6
14Stack trace:
15#0 {main}
16  thrown in %s on line 6
17