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