summaryrefslogtreecommitdiff
path: root/Zend/tests/class_name_of_var.phpt
blob: 29f19e9fac1b7706161e38dab26c6a1d5c52c65e (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
$var::class is not supported
--FILE--
<?php

$obj = new stdClass;
var_dump($obj::class);

?>
--EXPECTF--
Fatal error: Cannot use ::class with dynamic class name in %s on line %d