1--TEST--
2#[\Deprecated]: Code is E_USER_DEPRECATED for class constants.
3--FILE--
4<?php
5
6set_error_handler(function (int $errno, string $errstr, ?string $errfile = null, ?int $errline = null) {
7	var_dump($errno, E_USER_DEPRECATED, $errno === E_USER_DEPRECATED);
8});
9
10class Clazz {
11	#[\Deprecated]
12	public const TEST = 1;
13}
14
15Clazz::TEST;
16
17?>
18--EXPECT--
19int(16384)
20int(16384)
21bool(true)
22