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