1--TEST--
2::class on an expression cannot be used inside constant expressions
3--FILE--
4<?php
5
6const A = [0]::class;
7
8?>
9--EXPECTF--
10Fatal error: (expression)::class cannot be used in constant expressions in %s on line %d
11