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