1--TEST-- 2#[\Deprecated]: Using the value of a deprecated class constant in a constant expression. 3--FILE-- 4<?php 5 6class Clazz { 7 #[\Deprecated("prefix")] 8 public const PREFIX = "prefix"; 9 10 #[\Deprecated("suffix")] 11 public const SUFFIX = "suffix"; 12 13 public const CONSTANT = self::PREFIX . self::SUFFIX; 14} 15 16var_dump(Clazz::CONSTANT); 17 18?> 19--EXPECTF-- 20Deprecated: Constant Clazz::PREFIX is deprecated, prefix in %s on line %d 21 22Deprecated: Constant Clazz::SUFFIX is deprecated, suffix in %s on line %d 23string(12) "prefixsuffix" 24