xref: /PHP-7.4/Zend/tests/class_name_of_var.phpt (revision 290adc41)
1--TEST--
2$var::class is not supported
3--FILE--
4<?php
5
6$obj = new stdClass;
7var_dump($obj::class);
8
9?>
10--EXPECTF--
11Fatal error: Cannot use ::class with dynamic class name in %s on line %d
12