1--TEST--
2class name as scalar from ::class keyword error using static non class context
3--FILE--
4<?php
5
6$x = static::class;
7
8?>
9--EXPECTF--
10Fatal error: Uncaught Error: Cannot use "static" in the global scope in %s:%d
11Stack trace:
12#0 {main}
13 thrown in %s on line 3
14