1--TEST-- 2A redeclared class constant must have the same or higher visibility 3--FILE-- 4<?php 5 6class A { 7 public const publicConst = 0; 8} 9 10class B extends A { 11 protected const publicConst = 1; 12} 13?> 14--EXPECTF-- 15Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 9 16