1--TEST--
2class name as scalar from ::class keyword error using static in class constant
3--FILE--
4<?php
5
6namespace Foo\Bar {
7    class One {
8        const Baz = static::class;
9    }
10}
11?>
12--EXPECTF--
13Fatal error: static::class cannot be used for compile-time class name resolution in %s on line %d
14