1--TEST--
2An error should be generated when using ::class on a constant evaluated expression
3--FILE--
4<?php
5
6(1+1)::class;
7
8?>
9--EXPECTF--
10Fatal error: Cannot use "::class" on int in %s on line %d
11