blob: de68e9cca116bf8d4416b49fd95481998231d5fd (
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
|