1--TEST--
2#[\Deprecated]: Using the value of a deprecated class constant as the deprecation message.
3--FILE--
4<?php
5
6class Clazz {
7	#[\Deprecated(self::TEST)]
8	public const TEST = "from itself";
9
10	#[\Deprecated]
11	public const TEST2 = "from another";
12
13	#[\Deprecated(self::TEST2)]
14	public const TEST3 = 1;
15}
16
17Clazz::TEST;
18Clazz::TEST3;
19
20?>
21--EXPECTF--
22Deprecated: Constant Clazz::TEST is deprecated, from itself in %s on line %d
23
24Deprecated: Constant Clazz::TEST2 is deprecated in %s on line %d
25
26Deprecated: Constant Clazz::TEST3 is deprecated, from another in %s on line %d
27